Advanced search not working with NOT IN operator with Labels

I have some JIRA items with a label OnHold. Many other items have no label or a different label. I am trying to find the JIRAs that are in a certain status and do NOT have the OnHold label. Here is what I tried:

status in (open,reopened) and labels not in (OnHold). It accepts the syntax but returns NO records.

When I take out the not it successfully returns all the records that DO have the OnHold label.

Why does not in not successfully return the records that do NOT have the OnHold label?

What is the correct syntax?

1 answer

0 vote
Bruno Rosa Atlassian Team Mar 09, 2013

Steve, I believe you could use something like:

  • labels != OnHold OR labels = EMPTY and status = Open

That's because if you just put labels not in 'OnHold', it won't find issues that don't has any labels. Thus, you have to make sure to build the query stating that the label could be different from OnHold or equal to EMPTY.

Hope it helps.

Cheers,

Bruno Rosa

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 6 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

84 views 4 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you