Navigate Directly to a “New Jira Ticket” URL

Q: “How can I go straight to a URL for a new Jira ticket?”

A: I go straight to a “Create issue” page, without having to click a “Create” button, by navigating to this URL:

https://[JiraDomain]/secure/CreateIssueDetails!init.jspa?pid=[ProjectID]&issuetype=[IssueTypeID]

. . . where

  • your [JiraDomain] is probably like xyzcompany.atlassian.net
  • [ProjectID] is a numeric code (in my case, 5 digits), and
  • [IssueTypeID] is another numeric code (another 5 digits in my case, YMMV).

Q: “Okay, how do I get ProjectID and IssueTypeID?

A: To determine the five-digit codes for my [ProjectID] and [IssueTypeID], I navigated to

https://[JiraDomain]/rest/api/latest/project/[ProjectKey]

. . . where your [JiraDomain] is probably like xyzcompany.atlassian.net and [ProjectKey] is the letter prefix for your project (my current one is SSJ).

I then sorted through its JSON output to find the bits that looked like this:

"id": "12345",
"key": "SSJ", 

and this:

"id": "98765",
"description": "Stories track...",
"iconUrl": "https://xyzcompany.atlassian.net/...?size=medium",
"name": "Story",

which would make for a URL like

https://xyzcompany.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=12345&issuetype=98765

Leave a comment