We have a lot of agents running numerous jobs across multiple projects, when the team decide to spin up a new agent it has to be dedicated to the same projects, plans, and environments as the last one. This is a long painful process as the list is exceptionally long. Has anyone got an SQL script or offer some advice on how to develop one to copy the dedications from one to the other?
Thanks
Agent's table name is queue.
Agent assignments' table name is agent_assignment.
Query below shows all assignments with corresponding agent
select * from agent_assignment ags inner join queue q on ags.executor_id=q.queue_id and ags.executor_type = 'AGENT';
Hope this information is enough to build a query to reassign one agent's plans to another one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.