Forums

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

How can I exclude using 2 subsets of text, see statement below

Linda Pallett
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!
May 28, 2026

project = value" AND issuetype = value AND "Change Category[Dropdown]" IN (value) AND updated >= value AND description does not contain value1 and value2

 


I've tried and it excludes description not equal to value1, but includes description equal to value2:

project = value" AND issuetype = value AND "Change Category[Dropdown]" IN (value) AND updated >= value AND description !~ value1 AND description !~ value2

3 answers

0 votes
Joseph Chung Yin
Community Champion
May 28, 2026

@Linda Pallett 

Adjust the the following line in your JQL as follow as related with the Description field testing...

NOT (description ~ value1 or description ~ value2)

This should work...

Hope this helps.

Best, Joseph

0 votes
Christopher Yen
Community Champion
May 28, 2026

 

Hi @Linda Pallett 

I think you'll want to use NOT (description ~ value1 OR description ~ value2)

 

project = "value" 
AND issuetype = value
AND "Change Category[Dropdown]" IN (value)
AND updated >= value
AND NOT (description ~ value1 OR description ~ value2)

 

0 votes
John Funk
Community Champion
May 28, 2026

Hi Linda,

If you take out the part about value1 and just leave value2 does it work and exclude value2? 

And just to clarify - you only want work items that do not have both values in a single Description. Correct? 

Linda Pallett
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!
May 28, 2026

Yes it does exclude value2, but includes value one.  Yes, I want it to exclude both values that are for the same field.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events