Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,525
Community Members
 
Community Events
176
Community Groups

Bamboo SQL Query to list all the disabled plans

I'm looking out for an SQL Query which can find out all the disabled plans in bamboo.

 

Thanks in Advance

2 answers

1 vote
Foong Atlassian Team Jun 18, 2018
SELECT * FROM BUILD
WHERE SUSPENDED_FROM_BUILDING = TRUE
AND BUILD_TYPE IN ('CHAIN','CHAIN_BRANCH')
ORDER BY FULL_KEY;

CHAIN is main plan while CHAIN_BRANCH is branch plan 

0 votes

Hi! 

 

May I know what is the your purpose? 

I have met sometimes with issues releated for cleaning disabled plans. 

I am using this rest api https://github.com/AstroMatt/atlassian-python-api/pull/47/commits, or you can use this script https://gist.github.com/sguillope/001c1f5574be3be3a595

Also, keep in your mind this sql queries for fetch disabled

https://confluence.atlassian.com/bamkb/how-to-query-plan-branch-details-from-the-bamboo-database-867032636.html

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events