JQL query to only show stories NOT in a sprint

I was provided with this query

project = x and Sprint not in openSprints()

But it gives me zero returns. The issue seems to be in the openSprints function. Just trying to create a planning board that shows all items not assiged to a sprint.

3 answers

Hi,

I've seen that the right query to obtain unplanned issues is "sprint is null". What I'm trying to do now is getting the last opened sprint starting date.

sprint is null and createdDate >= startOfDay(-2w) and status not in (new, defined) order by createdDate desc

It was mentioned above kinda but yea to show things not in a sprint you can do

AND Sprint = null

To show things in the current sprint

AND Sprint in openSprints()

As the OP was asking I believe doing

And Sprint NOT IN openSprints()

would only return you things if there was say a past or future sprint assigned but that's a pretty uncommon usage unless you were trying to get a view of closed tickets not in the current sprint or something of that nature. It's more typical to have stories that are in the "backlog" per se so the Sprint value is null in that case.

I can confirm that I am getting the same problem in the OnDemand JIRA/Grasshopper product.

This query returns correctly:

Sprint IN openSprints() ORDER BY key ASC

by showing the Stories that are currently in a sprint.

This query returns nothing, even though there are Stories not in any sprint:

Sprint NOT IN openSprints() ORDER BY key ASC

Dan Z. did you over come this eventually?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,754 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot