How do I know the sprint ID number of a CURRENT sprint?

Is there anywhere that this is actually visible? I need the ID to fit into Filter search criteria.

 

I just need a report other than the Active Sprint columns, where I get an easily read list of all the tasks in a specific Sprint.

4 answers

There might exist multiple active sprints. Try

sprint in openSprints()

See https://confluence.atlassian.com/jira/advanced-searching-functions-338363497.html#AdvancedSearchingFunctions-openSprints()

You can also write

sprint in (56)

or

sprint in (55,56)

where 55 and 56 are Sprint IDs. To get to know the ID of a sprint, you have two options:

  • Since Sprint ID is just a hidden custom field, you can export an issue that you know it belongs to the Sprint you need and export it as XML, then look for <customfield id="customfield_xxxxx" key="com.pyxis.greenhopper.jira:gh-sprint"> in the XML. The Sprint ID will be stored here.
  • When you are in JIRA Agile Backlog view, open up your browser's console (press F12 in Chrome or Firefox) and run this code in the Console tab:

    $=AJS.$;$.map($(".ghx-sprint-group &gt; div"), function(sprint) { return $(sprint).find(".ghx-name").text() + " -&gt; ID=" + $(sprint).data("sprint-id"); })



    If you only need the active sprints, run this:

    $=AJS.$;$.map($(".ghx-sprint-group &gt; div.ghx-sprint-active"), function(sprint) { return $(sprint).find(".ghx-name").text() + " -&gt; ID=" + $(sprint).data("sprint-id"); })
0 vote

In the "Backlog" view, you will find an option to "View in Issue Navigator" along side the sprint name. It is a small icon with 3 small dashes and a rectangle.

When you click on it, it takes you to the issue navigator and the query will have the correct sprint id in it.

No such icon in the Backlog view, sorry.

Which version are you using?

Gabor,

 

I need the sprint ID number.

Please look at my edited answer above. If you need more info, please add it as a comment to that post.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

172 views 1 17
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