JIRA Project ID

Karie Kelly
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.
March 18, 2014

How do you find out the ID associated with a JIRA projec - so, not the key, but the actual ID as I need to use it in a URL that will be a button, than, when clicked, automatically populates the correct project and issue type. Issue type I can get from the URL after navigating to it within Administration. But, am having a hard time finding it for the project in any URL - it always references the key. Any ideas?

4 answers

1 accepted

5 votes
Answer accepted
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2014

Karie,

If you navigate to your Project list in the Administration, you can find the Project ID (pid) in the URL of the 'Edit' button. (http://yourjira.com/secure/project/ViewProjects.jspa)

Alternatively, you can select * from project in the JIRA database.

Karie Kelly
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.
March 18, 2014

That's what I thought I did before. However, now, when i edit the project, a modal dialog displays instead of navigating to a separate URL. However, it did give me the id that if I viewed source and searched for pid I could locate it -- which I did. I don't have access to the db directly (without lots of requests!). Thanks!

Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2014

You can also simply copy the link of the Edit button instead of opening the page source. :)

John Butler September 18, 2015

^^^^^^ this works. (thumbsup)

IT December 3, 2015

Probably best to mention to view the Page Source, you don't need to open the Edit Window. You have to look for the PID for that project. All the projects will be listed on that page.

10 votes
Pavel Kovalenko October 4, 2018

Above described approach didn't work for me since I don't have rights to edit projects. You can find pid from page source code:

 

https://my_jira/secure/CreateIssue.jspa

 

Open project combo box and inspect the one you're interested in. Check <img> tag:

 

<img class="icon" alt="" src="https://my_jira/secure/projectavatar?size=xsmall&amp;pid=value&amp;avatarId=11901">

Ingo Mohr November 1, 2018

Thx for finding out. Worked for me.

Mark Harviston March 12, 2019

This doesn't work if your project doesn't have an icon set and is using the default icon.

Daniel Davídek September 25, 2020

If your project is not using the default icon,

you can also get the jira project_id via:

- open your jira project

- right click context menu over the project icon (top left corner)

  - select "view image"

- the project icon image is opened in separate tab

- copy the project_id from the project icon image browser url

https://jira.company.com/secure/projectavatar?pid=13840&avatarId=10211

The project id is then 13840

Like # people like this
2 votes
Michael Aniskovich September 28, 2020

Just venting... but who architected this godforsaken thing?  Oh, the project ID is needed for THIS, but the project key is needed for THIS, but the project name is needed for THIS.  And invariably, it seems like every discussion I peruse here starts with "do this" and the response is "that didn't work."  Or, "I don't see that option."

Thanks, Atlassian, for making things so easy for us.

Brennan Young March 4, 2021

I wonder why they don't just display the project ID somewhere on the project settings page.

Like jlohrmann likes this
2 votes
Donna Macauley January 11, 2016

Here are the steps, clarified by Atlassian support:

Jean-Philippe Larochelle August 14, 2018

doesnt work anymore because it now shows the project id name. The annoying part is that in the filter it automatically transform it from the id name to the pid and it's very hard to edit without doing some research.

Like # people like this
Justin December 21, 2020

https://jira-url.com/secure/project/EditProject!default.jspa?pid=12345&returnUrl=ViewProjects.jspa

^ This one is very useful if you're looking for a project and only have the PID though.

Suggest an answer

Log in or Sign up to answer