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

Jeremy Docken September 10, 2013

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

0 votes
Deleted user November 11, 2014

!~ 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

0 votes
Jeremy Docken September 10, 2013

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

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2013

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

Suggest an answer

Log in or Sign up to answer