Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JQL to search Summary field for not contains on multiple values - syntax doesn't work

Hi,

I have a query to search issues where the summary does not contain multiple different values, but the query is not running correctly. I  believe that I have it set up correctly but would like some help if not.

An example of my query:

issuetype = "issuetype1" AND (summary !~ "ABC" OR summary !~ D OR summary !~ "EFG") ORDER BY reporter ASC

But the results are showing me issues with summary that contains "ABC" and with summary that contains "D".

What is wrong with my syntax??  Thanks.

2 answers

1 accepted

2 votes
Answer accepted
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 17, 2022

@Allison Stewart -

Hi Allison:

Instead or OR operator, try this -

issuetype = "issuetype1" AND (summary !~ "ABC" AND summary !~ D AND summary !~ "EFG") ORDER BY reporter ASC

Your operator usage of !~ is correct, as for Text field search in Jira/JSM - the valid operators are: ~, !~, is, and is not.

Here is a link on search syntax for text fields in Jira/JSM JQL - https://support.atlassian.com/jira-software-cloud/docs/search-syntax-for-text-fields/

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

I used the AND ... and that appears to be working.  But it's counterintuitive.

I want issues where the summary does not contain any of those values.  Not where the summary does not contain all of them together.

Thank you for your help.

Lakhaman Odedra
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!
Jun 27, 2023

Hi @Allison Stewart 

Did you able to find any correct logic for above query? I am also finding solutions for same problem. 

Thanks 

Hi @Allison Stewart 

your operators seem to be unsupported ones, did you try using

 

summary != "ABC" (and so on)

 

Cheers!

The operator '!=' is not supported by the 'summary' field.
Nilesh Raut
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!
Nov 21, 2023

Try this one

!(summary ~ "ABC")

Suggest an answer

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

Atlassian Community Events