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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


REST API of Build Result - to return Branch Name

I am looking for an API call that can return branch name that is associated with specific BuildNumber#




2 answers

I understand that - Builder is not independent from branches but I think there is alternate way to associate branchName with buildplan


Default PlanName -- Maps to a branch that is mentioned repository plugin 

PlanName#2 -- Maps to branchName (can be any feature branch)  -- > this plan is auto generated when you turn on branch builds for your plan


So bottom Line, I am interested to find out how can i get the default BranchName that is associated with Default Build Plan  - (that can be Master Or Develop or somethingelse)


Hope I am clear with this additional information


0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2018

try the /rest/api/latest/result.json?expand=results.result.plan.branches.branch.latestResult endpoint.


that returns a result object with list of branches - but it doesn't return specific branch name that build result was/is associated

I am interested with branchName that is associated for a BuildNumber

Not exactly an API call... but for the record, try this (in Linux shell):

wget -q -O - https://bamboo.YOURDOMAIN/browse/YOUR-BUILD-123 | grep plan-branch-name

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events