Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Bamboo plan descriptions via REST

Tom Allen March 11, 2019

I'm trying to get some basic details about all of the plans we have configured in Bamboo using the following REST call:

http://myhost.com:8085/bamboo/rest/api/latest/plan.json

This gives me a nice summary of all the plans configured, but for some reason, description is not one of the fields included.

The only way I have found so far to get the description is to individually query each plan using this:

http://myhost.com:8085/bamboo/rest/api/latest/plan/{projectKey}/{buildKey}.json

If that is the only way to get the description, then I will have to find a way of making that work, but would be really nice to only have to make one/a few calls to the REST api rather than 100's

 

1 answer

0 votes
Tom Allen March 11, 2019

As is often the way, shortly after posting this, I discovered 

?expand=plans.plan 

Which gives an extremely verbose output which includes the plan description. 

Will go with this for now but would be interested in other solutions which would be more efficient.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events