JQL Sprint = "sprint 19" returns no results even though I have 30 issues with "Sprint 19" in the sprint field.

What I am trying to do is find all the issues with Sprint 19 in the Sprint field managed by GreenHopper.

I recieve no results when doing a JQL on [ Sprint = "sprint 19" ] and I get this "This query is too complex to display in Simple mode" even though I'm in advanced search.

Any thoughts?


1 answer

1 accepted

3 votes
Accepted answer

That's because the Sprint field is actually numeric. The name of the sprint that you configure on the rapid board and that you see in the Agile section of each individual JIRA issue is the alphanumeric text value. But the JQL 'sprint' query parameter expects a numeric value which is the actual value stored in JIRA. To find the numeric value, you need to 'hover your mouse' over the sprint name (like on an indiviaul issue), and see the URL being generated by JIRA. Somethign like... http://xxx/secure/GHGoToBoard.jspa?sprintId=1

Then query on this ID number at the end of the URL (sprint =1). In your case, if you only have 1 board and all sprints are named sequentially, then 'Sprint 19' may in fact equal 19 numerically (so your query would become Sprint=19). But if there are other boards with their own sprints, then it may not be. The bottom line is that sprints have textual names but behind the scenes JIRA /GH stores numeric sequential numbers across ALL sprints in GreenHopper.

Thanks Joanna! That did the trick. It took me a little bit to find a sprint link. (for others with this question) I found it in the bottom right corner of a detail view under the AGILE section of an issue in a current or past sprint.

Thanks for clarifying for me. The JQL now looks like this [ sprint = 10 ]

This worked perfectly for active sprints.

What about a future sprint that hasn't started yet? I can't seem to find a sprint ID for those.

Hi Nathan,

There is a story on the backlog for that feature: GHS-5773

Nicholas Muldoon

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,197 views 5 10
Read article

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