-
Bug
-
Resolution: Low Engagement
-
Low
-
None
-
None
-
1
-
Severity 3 - Minor
-
5
-
I am trying to fetch all builds of a plan from Bamboo rest API. but its giving me only 25 builds.
API URL: https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json
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)
https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json?max-results=1
output: size=1, max-result=1 (Whereas plan has 33 builds)
expected output: size=33, max-result=1
https://localhost:8085/rest/api/latest/result/PROJECTKEY-PLANKEY.json?max-results=PASS-SIZE-HERE
Working API to get the Project Size:
https://localhost:8085/rest/api/latest/project.json?max-results=1
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.
- relates to
-
BAM-10050 Problem with getting plan results beyond max-result number
-
- Closed
-
[BAM-17961] Result resource shows incorrect size of build results
Resolution | New: Low Engagement [ 10300 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Closed [ 6 ] |
Labels | Original: da-rest | New: cleanup-seos-fy25 da-rest |
UIS | Original: 4 | New: 5 |
Status | Original: Needs Triage [ 10030 ] | New: Gathering Impact [ 12072 ] |
Priority | Original: Highest [ 1 ] | New: Low [ 4 ] |
UIS | Original: 41 | New: 4 |
Status | Original: Gathering Impact [ 12072 ] | New: Needs Triage [ 10030 ] |
Priority | Original: Low [ 4 ] | New: Highest [ 1 ] |
UIS | Original: 4 | New: 41 |
UIS | Original: 3 | New: 4 |