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,298,123
Community Members
 
Community Events
165
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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

956 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you