How do I get the current sprint?

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.

 

3 answers

1 accepted

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


0 vote

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.

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)?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

113 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you