Searching Issues From Archived Projects With the JIRA REST API

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When posting a request to /rest/api/2/search with the following (example) POST body:

{"jql": "project = PROJ ORDER BY key ASC","startAt":0,"maxResults":500,"fields":["id","key","summary","status.id","issuetype","timeoriginalestimate","timeestimate"]}

Where the project PROJ is an archived project, the following message is shown:

{"errorMessages":["The value 'PROJ' does not exist for the field 'project'."],"errors":{}}

Cause

An archived project is typically a project with an empty permission scheme. No one will be able to search on that project since there is no access to it.

Resolution

There are two possible resolutions:

  • Changing the project's permissions;
  • Creating a specific user for REST API calls with permissions over the archived projects enabling it to search on it.
Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.