Create Jira Issue Link with Default Project and Issue Type

August 3, 2020 • • Published By • 2 minute read

If you’re a Jira user, I’m sure you’re familiar with the Create button in the Jira top bar. It opens a dialog allowing you to select a project and issue type and fill out a Jira issue. What if you wanted to provide a link to the Create Jira Issue screen with the project and issue type predefined?

Table of Contents

Jira Project and Issue Type Ids

First, we need to get the Jira Project and Issue Type Ids. This isn’t something that is visible on a Jira screen. It’s something that you have to look for in the HTML.

<input type="text" value="12345" id="project" name="pid">

<input type="text" value="67890" id="issuetype" name="issuetype">
  1. Click on the Create button in the Jira top bar. On the Project field, right click and select Inspect. This will open the browser’s Developer Tools.
  2. In the Elements tab, hit Control + F to bring up the Find option.
  3. For the Project Id, we’re looking for an input field with an id of project. Search for input#project. Make note of the number in the value attribute. That’s the Project Id.
  4. For the Issue Type Id, we’re looking for an input field with an id of issuetype. Search for input#issuetype. Make note of the number in the value attribute. That’s the Issue Type Id.

Create Jira Issue Link

We now have the information needed to build the Create Jira Issue link.

https://YOUR_JIRA_DOMAIN_HERE/secure/CreateIssue.jspa?pid=PROJECT_ID_HERE&issuetype=ISSUE_TYPE_ID_HERE
  1. Replace YOUR_JIRA_DOMAIN_HERE with the domain where your Jira system lives.
  2. Replace PROJECT_ID_HERE with the Project Id value you got from the html.
  3. Replace ISSUE_TYPE_ID_HERE with the Issue Type Id value you got from the html.

Place that url on any web page where you’d like to link to the Create Jira Issue screen with the project and issue type predefined!

Related Articles
About the Author

Front End Developer

https://nightwolf.dev