Forums

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

How to exclude Jira projects by ID when using /rest/api/3/project/search?

Maxim Korhov
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!
January 23, 2026

 

I’m using Jira Cloud REST API endpoint: GET /rest/api/3/project/search Is there any way to exclude specific project IDs directly in the request (for example, something like NOT IN or !=)? I already know that the `id` parameter works only as an include filter and that `query` is just a text search. Is there any supported way to apply exclude logic on API level, or is post-filtering in code the only option? 

2 answers

0 votes
Matt Doar _Adaptavist_
Community Champion
January 23, 2026

Using that API to search projects, JQL is not used. The only way I can see would be to get all the project ids and then pass in a subset of them to that REST API using the keys parameter. Or you could search using project categories perhaps?

0 votes
Daniel Turczanski
Contributor
January 23, 2026

Hi @Maxim Korhov 

The JQL syntax to exlude all work item (issues) from a certain project is:

project!='Project name'

or using project id 10000:

project!=10000

 

Keep in mind that the GET /rest/api/3/project/search endpoint is soon going to be remove and you should be using GET /rest/api/3/search/jql instead: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get

 

Matt Doar _Adaptavist_
Community Champion
January 23, 2026

I think this answer mixes up searching for issues with JQL and searching for projects, which is not changing AFAIK

Like Daniel Turczanski likes this
Daniel Turczanski
Contributor
February 4, 2026

Yes you're right. 

 

Doesn't seem like you can achieve what the author is asking for with just one API call.

Suggest an answer

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

Atlassian Community Events