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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

!~ 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
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

83 views 0 1
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