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
Community Members
Community Events
Community Groups

Obtain sprints order by completeDate from the board using Rest API



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?


1 answer

1 accepted

0 votes
Answer accepted

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.

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

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events