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: 

JQL bug with field Resolution and value Fixed?

Abhay Patil
Contributor
March 10, 2017

Following query works - and lists all the issues for which Resolution is Fixed and Unresolved. (Note: Unresolved shows in italics in the response.)

project = XXX AND  assignee in (YYY) AND status not in (Closed, Done, cancelled )   

Following query also works - shows only those who have resolution as Fixed.

 project = XXX AND  assignee in (YYY) AND status not in (Closed, Done, cancelled )   and resolution in ( Fixed )

To eliminate Fixed ones and see only Unresolved, I modify the query as below - and it DOES NOT WORK!

 project = XXX AND  assignee in (YYY) AND status not in (Closed, Done, cancelled )   and resolution not in ( Fixed )

I also tried the following version - and that too did not work.

project = XXX AND  assignee in (YYY) AND status not in (Closed, Done, cancelled )   and NOT ( resolution in ( Fixed ) )

Am I missing something - or is this a JQL bug?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Answer accepted
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 Champions.
March 10, 2017

It's not a bug, you are missing something. 

Look at the question you are asking it, and bear in mind that computers are very literal, and do not think the same way humans do, nor do they think in the same language.

When you ask "resolution in x, y", you are asking for all issues where the resolution is either x or y.

When you ask "resolution is not in x, y", you're asking for all issues where the resolution is not x or y. 

But you have not asked for issues where the resolution is empty, which JIRA will report as "unresolved".  You can't ask a computer to check if something is not X or Y when there is nothing there to actually check.  It can't do it.  Humans mostly instinctively understand that <null> in this case also means "not x or y", but mathematically and logically, it's not.

Try this query:

project = XXX AND  assignee in (YYY) AND status not in (Closed, Done, cancelled ) and

(resolution not in ( Fixed ) or resolution is empty)


It should also work for (resolution not in (Fixed) or resolution = unresolved)

 

Abhay Patil
Contributor
March 10, 2017

Thanks much @Nic Brough.

The UI made me completely miss the point that "Unresolved" is actually NULL - and not a literal like Fixed. (When I download the report in Excel, the "unresolved" does come in as empty field though.)