Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,931
Community Members
 
Community Events
184
Community Groups

Page thru REST api result set

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.

1 answer

0 votes
Kristopher Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 06, 2023

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events