-
Bug
-
Resolution: Unresolved
-
Low (View bug fix roadmap)
-
None
-
7.3.0, 7.9.0, 8.15.0, 8.13.8
-
7.03
-
11
-
Severity 3 - Minor
-
1
-
Summary
When calling the REST API endpoints starting with rest/agile/1.0/board the value set for the parameter maxResults is not taken into account if it is bigger than '50' (it always return 50). The parameter startAt works fine instead.
Environment
Jira Server and Data Center
Steps to Reproduce
1- Call any agile/1.0/board endpoint passing a value for maxResults that is lower than 50
2- See that this works fine.
<BASE-URL>/rest/agile/1.0/board/ID/sprint?startAt=20&maxResults=20
{ "maxResults": 20, "startAt": 20, "isLast": false, "values": [ .......
3- Call the same endpoint passing a value for maxResults that is bigger than 50. E.g.
<BASE-URL>/rest/agile/1.0/board/1/sprint?startAt=20&maxResults=70
Expected Results
The maxResults value in the REST response is correctly set to the desired value
Actual Results
maxResult is always set to 50
"maxResults": 50, "startAt": 20, "isLast": true, "values": [.....
Notes
The same issue reproduces calling:
- /rest/agile/1.0/board
- /rest/agile/1.0/board/ID/project
- /rest/agile/1.0/board/ID/epic
- /rest/agile/1.0/board/ID/sprint
Workaround
Use the "startAt" parameter to get all the results
I'm not getting the expected results using startAt in Jira 8.20.10
There is also more info at
https://community.developer.atlassian.com/t/get-all-sprints-api-suggestion/62966