Can't figure out this advance filter using (comment !~)

I'm trying to set up a filter that will look through a list of tickets that are in a certain status, but do NOT contain a specifc comment. If that comment is present I do not want it to be picked up. I've been trying to use the filter below as an example, any help on this would be greatly appreciated...

project in (ABC, CDF, XYZ) AND status = Resolved AND comment !~ "\"Ready for Release\""

3 answers

did you tried like this?

project in (ABC, CDF, XYZ) AND status = Resolved AND comment !~ "Ready for Release"

check this document to perform text searches on comments

https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-Comments

https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches

Yep, and that did not work either. I believe part of the problem is that on comments you can not use the "=" operator as ~ is using "fuzzy" matches

!~ is a funny operator. What it does is find any issue with a comment that does not contain the text. So, if you have an issue with 2 comments ("Blah" and "Meh"), comment ~ "Blah" and comment !~ "Blah" will BOTH find the issue.

I believe you want to first create a filter that finds resolved issues WITH the comment and then create another filter that finds resolved issues not in the first filter (i.e. does not contain the comment).

For example, F1 = ... ~ "Ready for Release", F2 = ... filter != F1

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

174 views 1 17
Join discussion

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