Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to do negative search for string in Comments?

Stephen Sanford
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2023

When I run a query for tickets like:

 (comment ~ fooString)

... I get the exact set of tickets with fooString in the comments (in my case, there is exactly one.  This is good and expected.

But when I search for

(comment !~ fooString)

I get the set of ALL tickets, including the one that contains the string.

Maybe this is because all my tickets have more than one comment, so the expression is matching to one of the comments that doesn't have the string?  I'm not sure.  But how can I run a query to find all tickets where a string isn't listed anywhere in any of the comments?  I'd like to be able to filter out tickets based on comment keywords.

1 answer

0 votes
Brant Schroeder
Community Champion
February 10, 2023
Stephen Sanford
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2023

Thank you, this did the trick!

Like Brant Schroeder likes this

Suggest an answer

Log in or Sign up to answer