Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA Project ID

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

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.

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!

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

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

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.

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

Thx for finding out. Worked for me.

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

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 Jo-Anne M Brandes likes this

Here are the steps, clarified by Atlassian support:

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 I'm New Here Dec 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.

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you