Hello, I am trying to get a list of all the sprints in a given scrum board. Currently, there are more than 50 sprints. When I try getting a response from an API call, I am only getting 50 results back. How do I page thru the next set?
Example:
https://jira.cec.lab.emc.com/rest/agile/1.0/board/5756/sprint
The above call only yields 50. I know there are more than 50 sprints.
So the developer documentation for the call is here - https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get
And in that document there is mention of the ‘startAt’ parameter that can be added to the end point. Usually the next start at can be found in the JSON response to get the proper pagination.
The new url would look like this:
https://jira.cec.lab.emc.com/rest/agile/1.0/board/5756/sprint?startAt=$theNextBatch
im going off memory here, so I can’t remember if the next batch is just numbered or if it is the next sprintId, but that should at least point you in the right direction.
Reply back once you figure out which it is
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.