excluding filter from the search

Leena Sharma January 14, 2020

Filter 1 = Criteria 1 

Filter 2 = Criteria 2 and issuekey not in (Filter 1)

 

I am struggling to implement filter 2 where I want to exclude the issue keys which are result of filter 1. 

 

Please advise. 

2 answers

2 accepted

5 votes
Answer accepted
Max Foerster - K15t
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2020

Hi @Leena Sharma

JQL supports the field "filter" to achieve what you're looking for, so a query like:

Filter2 AND filter != "Name or ID of Filter1"

should do the trick. For more information, I highly recommend the very good advanced search documentation by Atlassian. The link will lead you directly to the explanation of the "filter" field I described above. Please let me know if this answers your question.

Best, Max

Leena Sharma January 15, 2020

Thanks Max. it worked and is really a nice and short way.

Thanks for sharing the link. 

Like Max Foerster - K15t likes this
1 vote
Answer accepted
jakub.niepsuj January 14, 2020

Why don't you try to just use the filter 1 like so:
Filter 1 = Criteria 1
Filter 2 = Criteria 2 and not (Criteria 1)

Merve Nur Bas
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.
January 14, 2020

It has to be "not in (Criteria 1)", another option is "!= Criteria1"

Leena Sharma January 15, 2020

Thanks Jakub.niepsuj

Filter 2 = Criteria 2 and not (Criteria 1) worked for me. 

Suggest an answer

Log in or Sign up to answer