Obtain sprints order by completeDate from the board using Rest API

hemanth415 September 23, 2022

Hi!

I'm working on a use case to retrieve sprints from the board using rest api - /rest/agile/1.0/board/{boardid}/sprint. However, I'm not seeing the documentation to order the result set based on completeDate. Is there any option available to achieve this ordering?

TIA! 

1 answer

1 accepted

0 votes
Answer accepted
David Bakkers
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 23, 2022

Hello @hemanth415 

As per the documentation for that endpoint, the sprints are returned in the order stated:

"Returns the requested sprints, at the specified page of the results. Sprints will be ordered first by state (i.e. closed, active, future) then by their position in the backlog"

Given that the endpoint doesn't provide any options or parameters that you can set to have the results returned in other particular order, it will be up to you to sort the sprints by completeDate in your code / app that made the query to that endpoint.

hemanth415 September 27, 2022

Hi David - Thanks for the confirmation. I can sure handle it our custom code.

Suggest an answer

Log in or Sign up to answer