JIRA Software: How to search for issues in a Sprint using JQL
As of JIRA Agile v. 6.1.3 (now JIRA Software) you can search for a Sprint by name using JQL: Sprint = "MySprintName".
In versions prior to that you must search by Sprint ID number. More details on valid search syntax in JQL can be found here - Advanced searching.
Follow these steps to retrieve the Sprint number that a given issue is in:
- Go to an issue that has been assigned to the sprint and highlight over the Active Sprint: <sprint name>
- Look at the link that pops up in the lower left hand of the screen (Firefox) and the sprint number is the sprintID at the end of the string.
- Then in JQL use: Sprint=<sprintID>
Alternatively, to get the Sprint ID copy and paste the following in to the browser's developer tools console while you're on the Work mode of a Rapid Board:
javascript:alert("Sprint ID is " + jQuery("DD[data-sprint-id]").attr("data-sprint-id"))
Use JavaScript below for earlier releases of JIRA Software:
javascript:alert("Sprint ID is " + jQuery("SPAN[data-sprint-id]").attr("data-sprint-id"))