It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL and multiple attributes for custom field

How do I find the opposite of this jql- all issues not meeting these exact criteria?

 

Custom Field = "Value 1" AND Custom Field = "Value 2" AND Custom Field = "Value 3" AND Custom Field = "Value 4" AND Custom Field = "Value 5" AND Custom Field = "Value 6" AND Custom Field = "Value 7"

 

This is a custom field with checkbox attributes. I am pulling out all tickets that meet all 7 criteria/attributes(easy enough to do)  and then I need to isolate all tickets that have the custom field null/empty or don't have all 7 attributes checked (not so easy). 

I would like to act on both scenarios to move the ticket to a different status in Service Desk. 

2 answers

1 accepted

0 votes
Answer accepted
Antoine Berry Community Leader Nov 22, 2019

Hi @Marie_McClain ,

Alternatively the opposite of multiple ANDs would be : 

Custom field != "Value 1" OR Custom field != "Value2" OR ... OR Custom field IS EMPTY

Antoine

I needed the is empty. It's working now. Thank you.

0 votes

Hi @Marie_McClain 

Try saving this JQL as a filter with a name like "filterA"and then do this "filter != filterA"

Validate your results though but this simple method should give you all the issues not covered by above query. You can then add more queries to your second filter to refine it if needed.

Let me know if it works for you.

Ravi

I tried that before but my automation is running at the time of the ticket creation. The filter has not updated so I am unable to grab those tickets. 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you