JIRA filtering out EMPTY when using not in

Reefay November 18, 2019

I believe this is a JIRA bug.

 

I was filtering on component, and items were not showing up. My filter contained "component not in (thing1, thing2)". I have many items which component is not set (EMPTY). I finally was able to solve this issue with (component is EMPTY or component not in (thing1, thing2)). JQL should not filter out EMPTY when component not in is being used which is what I think is happening.

2 answers

1 vote
Payne
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 18, 2019

This follows the logic of SQL.

select * from mytable where myvalue not in (1,2,3)

does not return rows for which myvalue is null; you instead would use

select * from mytable where myvalue is null or myvalue not in (1,2,3)

0 votes
Scott Theus
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 18, 2019

Hi @Reefay 

First, let me say that I agree with you; this should be a bug. 

However, Atlassian has reviewed this as a "suggestion" recent;y and determined that they are not going to invest in addressing it. There is an explanation here: JRASERVER-23030 (Note this is valid for Cloud as well.)

The short answer is to use the workaround you've already shared.

-Scott

Suggest an answer

Log in or Sign up to answer