Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo API only displaying 25 branches of build plan

Hello, I am trying to retrieve a list of all the branches of build plan. My ultimate goal is to use this information to automatically create a release from each branch and then automatically deploy those branches.

I didn't get very far in this pursuit because the API method to list all branches of a build plan ( only retrieves 25 results. Similar methods behave similarly.

Is there a way to retrieve a list of all branches, or otherwise try to accomplish what I want to do?


2 answers

2 accepted

1 vote
Answer accepted

Hi @christok

The number of results is set by default to 25. You can change it by using the max-result property when calling the REST API endpoint as Alexey properly shared.


curl -u admin:admin -X GET <BAMBOO_URL>/rest/api/latest/plan/<PLAN-KE

I see this property is missing in our docs for some of the endpoints including the one you mentioned. I've opened the following improvement request to cover this:

Like Daniel Santos likes this

You are welcome!

0 votes
Answer accepted

Try this

curl -H "Accept: application/json" -u admin http://localhost:8085/rest/api/latest/plan/TEST-TEST/branch?max-result=1000

That worked, thanks! The one comment I'd make is that this particular method seems to return JSON not XML.

Hi @christok

If you remove the -H "Accept: application/json" part it will return the XML you want.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

191 views 4 6
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