The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why when using the "sprint not in opensprints()" statement, is the JQL is not producing data

Kurt Smith
Contributor
February 17, 2021

When I use this query I get no results:  (NOTE - I don't want to see stories in the active sprint)

project = "Operations 1" AND "Story Points[Number]" is EMPTY AND status != canceled AND summary !~ "Support for Phosphates IT" and type = story and sprint not in opensprints()

 

When I remove the active sprint statement then I get results:

project = "Operations 1" AND "Story Points[Number]" is EMPTY AND status != canceled AND summary !~ "Support for Phosphates IT" and type = story

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

7 votes
Answer accepted
Jack Nolddor [Sweet Bananas]
Atlassian Partner
February 17, 2021

Hi Kurt and welcome,

JQL queries can be tricky at first, can you try the following?

project = "Operations 1" AND "Story Points[Number]" is EMPTY AND status != canceled AND summary !~ "Support for Phosphates IT" and type = story and (sprint not in opensprints() OR sprint is EMPTY)

 

Regards

Kurt Smith
Contributor
February 17, 2021

That works well!

Thanks!

Kurt

Jack Nolddor [Sweet Bananas]
Atlassian Partner
February 17, 2021

You are welcome! Did my answer solved your question?

If so, consider to set my previous comment as accepted using the [Accept Answer] button to tell other members of this community that no further help is needed in this topic.

 

Regards

Kurt Smith
Contributor
February 17, 2021

Done!

Thanks again, Jack!

Kurt

Tom N Scoggin Jr
February 2, 2023

I just wanted to say thank you for this (sprint not in opensprints() OR sprint is EMPTY). I had tried everything to get this to work. I would have never guest to do it this way.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events