Get the ID of a Jira project from a web browser

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Retrieving the project id from the Jira Database (via the SQL query mentioned below) can be time-consuming, as it requires a Jira user to have access to the Database:

1 select id from project where pkey = '<PROJECT_KEY>';

Retrieve project ID using REST API

You can obtain the project ID via the REST API by accessing the following URL:

1 <JIRA_BASE_URL>/rest/api/latest/project/<project_key>

This will provide all of the metadata for the project(s), including the project ID value, as shown in the example of output below (the project id is 10000 in the example below):

1 2 3 4 5 6 7 8 { "expand": "description,lead,url,projectKeys", "self": "<JIRA_BASE_URL>/rest/api/latest/project/10000", "id": "10000", "key": "SCRUM", "description": "", ...

ℹ️ If you do not provide the project_key then it will return all projects.

ℹ️ It can be helpful to paste the JSON output into a JSON beautifier to improve readability.

Updated on April 10, 2025

Still need help?

The Atlassian Community is here for you.