You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to fetch all builds of a plan from Bamboo rest API. but its giving me only 25 builds.
As per the official documentation
The number of resources in returned lists is limited to 25, unless you specify max-result.
Hence for workaround, I thought I can fetch build size in first api call and pass size in second api call as
max-results parameter. So that it will give me all builds for a plan. But first API call ( with max-results=1) giving me
size 1 whereas same is working for fetching size of the projects.
API call to get the build size: (Not Working)
output: size=1, max-result=1 (Whereas plan has 33 builds)
expected output: size=33, max-result=1
Working API to get the Project Size:
output: size=30, max-result=1
My question here, Can we fetch all BUILDS of a PLAN? as by default its only fetching 25 builds.
Just stumbled over this and identified the following 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':
This returns the actual $results.size=x for me, allowing a proper request for the entire result set in turn.