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

Sujitha Selvam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 28, 2021

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
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2021

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
AUG Leaders

Atlassian Community Events