Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA filtering out EMPTY when using not in

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 Community Leader Nov 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 Community Leader Nov 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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you