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?
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!
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:
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&pid=value&avatarId=11901">
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
The project id is then 13840
Here are the steps, clarified by Atlassian support:
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.
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