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,462,938
Community Members
 
Community Events
176
Community Groups

How to fetch all the fields available in Bamboo using rest api

Edited

Hi,

We have a requirement to migrate Bamboo to Azure DevOps. For that we need the list of Fields available in Bamboo. Is there a rest api to achieve it. To be more exact, is there a  way to fetch the plan configuration details using api.

 

1 answer

0 votes

The Bamboo REST APIs are neither well documented nor the easiest to work with (primarily XML etc.), but conceptually you can fetch the plan configuration via the /plan resource and its various sub-resources for an individual plan, e.g. /plan/{projectKey}-{buildKey} yields:

<plan expand="actions,stages,branches,variableContext" key="AAWS-APPS" name="Automation with AWS - Build add-ons" shortName="Build apps" shortKey="APPS" type="chain" enabled="true">
<projectKey>AAWS</projectKey>
<projectName>Automation with AWS</projectName>
<project key="AAWS" name="Automation with AWS" description="">
<link href="https://www.example.com/bamboo/rest/api/latest/project/AAWS" rel="self"/>
</project>
<buildName>Build apps</buildName>
<planKey>
<key>AAWS-APPS</key>
</planKey>
<link href="https://www.example.com/bamboo/rest/api/latest/plan/AAWS-APPS" rel="self"/>
<isFavourite>true</isFavourite>
<isActive>false</isActive>
<isBuilding>false</isBuilding>
<averageBuildTimeInSeconds>256.0</averageBuildTimeInSeconds>
<actions start-index="0" max-result="7" size="7"/>
<stages start-index="0" max-result="2" size="2"/>
<branches start-index="0" max-result="12" size="12"/>
<variableContext size="8" max-results="8"/>
</plan>

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events