The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
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

1 vote
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.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events