Forums

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

Difference in JQL results

Volodymyr
Contributor
August 30, 2021

I have two JQL queries:
- The first:
project = CLPS AND issuetype = Opportunity AND status != Closed AND (cf[16217] is EMPTY OR cf[16217] is not EMPTY)
- The second:
project = CLPS AND issuetype = Opportunity AND status != Closed
The first one returns 565 and the second one 594 issues.

I've tried modifying these queries in different ways (w/ or w/o a specific value), but at the end I always got a difference of 29 issues and can't find out what exactly might be the problem.

Maybe a mistake lies in the request itself?

2 answers

1 accepted

2 votes
Answer accepted
Volodymyr
Contributor
August 30, 2021

The queries are working correctly and the issue is not in JQL, but in indexes. After re-indexing project everything works and JQL started showing the same result for both queries.

Hope it can help someone.

0 votes
Pavel Junek
Community Champion
August 30, 2021

Hi Volodymyr,

In the first case, it looks like Jira is returning a number of issues for cf[16217] is not EMPTY, because the OR operator is used.

But I'm just guessing.

Volodymyr
Contributor
August 30, 2021

@Pavel Junek Hi Pavel, I've tried two separate queries and the total amount of issues stayed the same.
project = CLPS AND issuetype = Opportunity AND status != Closed AND cf[16217] is EMPTY
project = CLPS AND issuetype = Opportunity AND status != Closed AND cf[16217] is not EMPTY

Suggest an answer

Log in or Sign up to answer