AI task list?

Hey there, I’m wondering whether it’s possible to create a ‘task list’ for my AI. Basically, the intention is to be able to have several minions that you look after in an RTS fashion - in order to give them commands to go and do things, you select the tool for the command you wish to perform (build, attack, etc) and click on the desired location in the world. The AI controlling the minions then sends them to complete the command.

In my head, the best way to handle this is to have some kind of list of jobs that have been requested that the AI reads and remove them from the list upon completion. This is because eventually I want to be able to set a priority for some jobs over others and some minions will be unable to perform certain tasks.

Is this feasible and how would you implement it or is there a better way of doing this?