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

excluding filter from the search

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

3 votes
Answer accepted

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

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

Thanks for sharing the link. 

1 vote
Answer accepted

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)

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

Thanks Jakub.niepsuj

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

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