Has anyone developed a SQL query to move Bamboo Dedications from one agent to a new agent?

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

1 answer

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

205 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you