How to get project id from the Jira User Interface

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

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.

*Fisheye および Crucible は除く

問題

The user needs to get the project ID from the browser (thus avoiding querying the database) in order to search via JQL query.

ソリューション

Retrieving the project id from the database is time-consuming. There are two methods which can be used to view the Project IDs from the web browser.

  1. From the Project Settings page (requires administrator privileges)
  2. Using the REST API (does not require administrator privileges)

ソリューション #1

  1. Go to Project > View all Projects
  2. Click on the Project Name for the project which you want to view the project id of
  3. Click on Project Settings in the lower left corner.
    • (warning) You must be a project administrator for the project or a Jira administrator in order to view the Project Settings page.
  4. Hover your mouse cursor over the Details button and you can view the project id in the navigation bar at the bottom of browser as shown below:

    For this example the project id is 10200

ソリューション #2

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

<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.

(info) If you do not provide the project_key then it will return all projects.

(info) It can be helpful to paste the JSON output into a JSON beautifier to improve readability.


Last modified on Mar 21, 2024

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.