In this blog, I'll quickly show you how to construct a URL to share with those who want to make Jira issues in a hurry. I will also show you how you can set values for the issue automatically via that same URL. Need to create a specific issue type with a specific summary and don't feel like doing so the traditional Jira way? I got you covered! This will allow you to bypass entering this information, leaving only the values you still need to collect once you arrive on the webpage. This is also a great way to avoid having to enter 1000 custom field values if you are submitting regular data such as change request details. You can even use HTML to embed this link within websites!
Let's start with the basic structure of the URL. You will want to begin with the following:
[JIRA BASE URL]/secure/CreateIssueDetails!init.jspa?[ARGUMENTS]
Here is an example, with everything filled in:
https://myjira.com/secure/CreateIssueDetails!init.jspa?pid=10400&issuetype=5&summary=ThisIsaTest&description=ThisIsAnotherTest
You can see above, I specify the project and issue type, but also auto-fill the summary and description. If someone visits this link it will take them to this issue create screen with the summary and description already filled out! The cool thing is you can do this for as many fields as you'd like, which can save you a lot of time!
Now, let's take our URL and plop it into some HTML so we can actually embed this thing nicely into a webpage! Here is how you would do so:
<a href="http://jira.atlassian.com/secure/CreateIssueDetails!init.jspa?pid=10400&issuetype=7&summary=Hello+Friend
&description=This+is+fun&components=10240&duedate=7%2dDec%2d2005&customfield_10010=this+is+a+custom+field">[DESCRIPTION]</a>
This will create a link called [DESCRIPTION] that, when clicked, will create the Jira issue as prescribed in the URL formatted above!
Before I leave you with this awesome new method for directly creating auto-filled Jira issues, here are some additional details that you may find useful:
That should give you all the basics you need to know in order to create one of these direct links for Jira issue creation. I hope this can be of use to you and your organization as we all work to excel with our Atlassian products!