Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Darrell Sutherland June 9, 2017

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2017

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

TAGS
AUG Leaders

Atlassian Community Events