How can i make a filter to exclude MULTIPLE words from the summary?

Anastasia Shere October 27, 2017

Currently my excluding section looks like this: 

AND summary !~ XXX AND summary !~ AAA AND summary !~ BBB AND summary !~YYY

I tried

summary !~ ("XXX", "AAA", "BBB", "YYY") 

summary not in ("XXX", "AAA", "BBB", "YYY") 

summary contains not ("XXX", "AAA", "BBB", "YYY") 

None of those are accepted as valid. Can someone help with simplifying my original query?

2 answers

6 votes
Gaston Valente
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.
October 30, 2017

Anastacia,

Try with:

summary ~ "-term1 -term2 -termN"
Anastasia Shere February 2, 2018

@Gaston Valente 

Thank you so much, it worked perfectly!

Benzi August 11, 2022

This helped me as well :) 

1 vote
JD Scott December 10, 2018

How would you do the same query, but using a search term that has a space in the middle?

summary ~ "-term1 '-term 2'  term3" doesn't seem to work...

Balázs Veisz
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!
January 3, 2019

moving the hyphen outside of the inner quote mark worked for me

summary ~ "-term1 -'term 2'  term3"
JD Scott January 3, 2019

That works for me Balazs.  Great job.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events