How do I get the current sprint?

Brian Witt September 4, 2015

I'm hitting the REST api at

/rest/greenhopper/1.0/sprintquery/{project}

and it's returning all sprints, including old sprints.  How do I get it to return just the active sprint?  I've tried using ?includeHistoricSprints=false but it seems to ignore that.

 

4 answers

1 accepted

8 votes
Answer accepted
Taha Khanzada
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 4, 2015

Agree with Nic, sprints belongs to boards. You could use this query /rest/agile/1.0/board/{boardId}/sprint?state=active


Brian Witt September 14, 2015

Thanks!

KyungBae Cho August 29, 2018

It works fine as I want. Great idea. Thanks a lot.

Yogesh Jindal February 15, 2021

Works in 2021 too. Thanks.

0 votes
Ajith TR May 4, 2021

Thanks for the answer

0 votes
Terri Cattell September 22, 2015

I'm having similar issues in finding out which is the 'current' sprint that the task is in. I totally get that the sprint is within a board (and therefore it could be open within many sprints on many boards) - but that also says that the Sprint column on the Issues Export is as much use as a chocolate teapot, because it doesn't tell you anything about the board that the sprint belongs to!

Can you think of any way I can see which is the sprint (or sprints) that the task is currently in (as opposed to the ones that it was in, but isn't any more because it's been moved on)?

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 4, 2015

I don't think you can - sprints belong to boards, not projects, so the question "what is the active sprint in this project?" could have many valid answers.

Suggest an answer

Log in or Sign up to answer