Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL query that returns any value from several projects except one exact project

Kate Suchkova
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!
July 22, 2019

Is it possible to set several Jira projects except one in JQL query?

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
July 22, 2019

Hi @Kate Suchkova,

Welcome to the Atlassian Community.

If you would like to exclude a project from your JQL you could use project != my-project, this will get you issues from all projects except my-project. If you want to specify a subset of projects you can use project in (proj1, proj2, proj3), this will only give you issues in those three projects. 

Craig Castle-Mead
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.
July 22, 2019

To expand on this answer by @Mikael Sandberg you can combine a wide get and then remove a project - eg: 

category in ("CategoryA") and project NOT IN ("SecretProject","HideMe")

this would get all projects in CategoryA except for SecretProject and HideMe

As you can see on https://community.atlassian.com/t5/Jira-questions/quot-project-not-in-quot-filter-fails-with-quot-value-does-not/qaq-p/36040 though, if you’re sharing the filter, make sure all users have access to the projects mentioned in the JQL or it may fail. 

 

CCM

Like # people like this
Kate Suchkova
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!
July 23, 2019

Thanks for your help! @Mikael Sandberg @Craig Castle-Mead 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events