Can i get all builds data of a plan through rest api reference in bamboo??

i couldnt able to find any solution for getting all build data in bamboo .it only gives data of latest 25 builds not for all builds.

is there any way to acheive this???

1 answer

This widget could not be displayed.

A common pattern to achieve this is:

  • Get the size of the result set via 'max-results=1'
    https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json?max-results=1
  • Use the output's '$results.size' value to request the entire result set
    https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json?max-results=<$results.size>

Unfortunately there seems to be a bug with this particular API only returning $results.size=1 rather than the actual result set size, see Result resource shows incorrect size of build results (BAM-17961).

Workaround

Using an arbitrary large number (say 1,000,000) that is greater than the actual result set seems to return the actual '$results.size':

  • Get the size of the result set via 'max-results=1000000'
    https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json?max-results=1000000

This returns the actual $results.size=x for me, allowing a proper request for the entire result set in turn.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

54 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you