JQL bug with field Resolution and value Fixed?

Abhay Patil 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

4 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 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.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events