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?
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also simply copy the link of the Edit button instead of opening the page source. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
^^^^^^ this works. (thumbsup)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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&pid=value&avatarId=11901">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This doesn't work if your project doesn't have an icon set and is using the default icon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wonder why they don't just display the project ID somewhere on the project settings page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are the steps, clarified by Atlassian support:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.