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,456,640
Community Members
 
Community Events
176
Community Groups

/plan/{projectKey}-{buildKey}/vcsBranches returns VcsBranch detection not available for Plan Branch

https://community.atlassian.com/t5/Answers-Developer-Questions/Is-there-a-way-to-list-Bamboo-branch-plans-and-their-source/qaq-p/552824

I am using the API calls described in the above answer to get vcsBranches and the following error appears when i run it.

can anyone please let me know how to rectify this, i want to get the vcsbranches for the plan before running it. 

COMMAND:

curl -u [USERNAME] -p -H "Content-Type: application/json" -X GET [BAMBOO-BASE-URL]/rest/api/latest/plan/[PROJECT-KEY]-[PLAN-KEY]/vcsBranches


ERROR:

{"message":"VcsBranch detection not available for Plan Branch","status-code":400}

1 answer

0 votes

You see this error because  [PROJECT-KEY]-[PLAN-KEY] used in request points to plan branch, but should point to "master" plan

thanks for your response. 

i see branches if i just query the master plan. 

but i need to see the Repository branch for a specify Branch plan not the master plan. 

here is the snap of what i am looking for 


bamboo_branch_plans.png

I'm afraid there's no REST endpoint to get this information for plan branch.

But you can try to get this info from plan branch build result, it's at metadata values

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events