Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get ALL records for a sprint list (/rest/agile/1.0/board/{boardId}/sprint)

Timothy Fischer September 13, 2021

I'm trying to get all sprints from a given boardId, and no matter how I try, I only get the first 50. I have tried adding "&startAt=51&maxResults=99" to see if it will return rows after 50 to no avail.

 

Am I missing how to add this into the request? I have added the startAt and maxResults and when using the added string to the URL above or directly in the request itself, the response returns null 404.

 

Can anyone help?

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
September 13, 2021

Hi @Timothy Fischer -- Welcome to the Atlassian Community!

Hmmm...I just tried it and it worked for me.  Of note:

  • When called without parameters, you get 00-49.  The next startAt value would be 50.
  • I believe you can only get back 50 with this call, no matter what you pass to maxResults

So please try the following to see if you get the second set.  Please note the parameter indicator, question mark, rather than starting with ampersand as shown in your question.

/rest/agile/1.0/board/{boardId}/sprint?startAt=50

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events