Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Does JIRA have not like?

陈思远 I'm New Here May 18, 2022


How can I use not like "blocking" similar to SQL

I need to remove the problem of "blocking" keyword in a field through advanced search function. How should I use it?

1 answer

0 votes

Welcome to the Atlassian Community!

I am not too sure that I understand the question, but I think it is about searching text fields?

Jira uses "contains" (which I think is not the best word in English to describe what it does) for text fields, and that is represented with the ~ symbol.

So the query summary ~ penguin will return all issues with the word "penguin" in the summary.  It is a somewhat fuzzy search, and it pretty much ignores punctuation and numbers, more here:

One of the problems with that though is that text might contain things that search definitions also use, including spaces.  While summary ~ penguin is ok, summary ~ Emporer penguin will fail, because, after Emporer, the search is expecting an operator next, not penguin.  To fix that, we quote - summary ~ "Emporer penguin"

It's similar for key words.  summary ~ and is going to fail because and is a search operator, and it's not just search terms that will make it fall over.  Again, the fix is quoting it.

Basically, summary ~ "thing to search for" is what you need.

I've used summary because it's a text field I can guarantee you are using, but it's the same for all text fields, even comments.  There is also a trick - you can use text ~ "thing to search for" to search all the text-based fields for an issue!


And then the "not" part of the question - you can invert any search with ! - summary !~ "thing to search for" will list all the issues that do not have the search text in them.

Be careful with ! though.  "Not X" is not the same as "list everything and remove everything matching X"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

167 views 1 3
Read article

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