Forums

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

Issue query seems to filter out inaccurate number of results when I add Sprint not in openSprintts()

Scott Crawford
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2020

Update:  (I can't figure out how to delete the post).  I solved this.  Apparently when I included sprint into the query, it started to exclude all tickets where sprint field was empty.  So adding in Sprint is EMPTY solved the problem

project = PIL AND issuetype in (story, bug, Task) AND (Sprint not in openSprints() OR Sprint is EMPTY) AND status not in (Canceled, "Notation Only (No Impact)", Done, Resolved, "In UAT", Validation, "Selected for Deployment", "On Hold") ORDER BY key DESC

 

 

 

 

I don't understand the results I'm getting from issue search queries:

Query 1:  If I enter the following query I get 161 results

project = PIL AND issuetype in (story, bug, Task) AND status not in (Canceled, "Notation Only (No Impact)", Done, Resolved, "In UAT", Validation, "Selected for Deployment", "On Hold") ORDER BY key DESC

 

Query 2:  If I run the following query, I get 19 results:

project = PIL and sprint in openSprints()

 

Query 3--combining them.  Here, I would expect to get 142 results.  But I only get 18 results.

project = PIL AND issuetype in (story, bug, Task) AND sprint not in openSprints() AND status not in (Canceled, "Notation Only (No Impact)", Done, Resolved, "In UAT", Validation, "Selected for Deployment", "On Hold") ORDER BY key DESC

 

It's not just an issue with open sprints.  If I put in my current sprint specifically (Sprint != 147) it still drops too many results

Anyone have any ideas?  

 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2020

You say "Update: (I can't figure out how to delete the post). I solved this. "

That's great to hear you fixed it! 

This place is a community of people using Atlassian stuff and some of us have read your question and thought "hey, yes, I've seen this too, how did you fix it?".

Rather than a delete, we'd actually like to know how, and would appreciate a write up of how you did.

But, we do understand "can I delete" too.  I'm afraid you have to ask moderator types if you're not a community leader or higher.  If you want to delete, some of us can do that (it's not a simple delete, but we can at least make it non-public).  Let us know where you want to go and I'll bin the question if you really want.

Suggest an answer

Log in or Sign up to answer