Pre-fill bug creation with URL

Hello,

We are about to start using JIRA 6.1 soon. I would like users, if something bad happens with a piece of software, to be given a URL that will prefill most of the interesting fields in a bug report.

Is it possible to do something like this? Can I generate a URL that when clicked will create a new bug report and prefill most fields so that the user can then just click submit?

This is more interesting for us than using the REST api because I don't want to force the user to provide its login to the software or write it down on a file.

Best regards,

Paulo Matos

2 answers

1 accepted

This widget could not be displayed.

Hi Paulo,

This is possible!

Example:

https://<your-jira-server>/secure/CreateIssueDetails!init.jspa?pid=<project-id>&issuetype=<issuetype-id>&summary=Add+your+Summary+here...&description=and+describe+your+request+in+detail+here...

For more info about using URL for creation check out: https://confluence.atlassian.com/display/JIRAKB/Creating+Issues+via+direct+HTML+links

Cheers,

// Svante

Please note that if you put that link with summary and all required fields - the ticket will be created automatically without user interaction. If you wish user add some additional data regarding the defect - remove summary or some requred field to continue with the creation screen.

Do you know if the values for, for example, versions can change at all? Or, lets say, valud id 10031 will always be for version 1.1_pre2 ?

ID of version, projects, issue types will never change. You can rename issue type, but ID will be the same (unless you manipulate them through database of course)

I am trying to create issue using direct HTML links. Project and issue type pre-populates but summary or assignee is not populating. Any help is greatly appreciated. Below is the sample URL I am using....

https://XXXX.Jira.COM/secure/CreateIssue.jspa?pid=11634&issuetype=3&summary=sample&assignee=MyNTIDHere

 

This widget could not be displayed.

Maybe something like this:

<yourjirahost>/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=1&summary=&priority=1&duedate=14%2FAug%2F14&assignee=-1&environment=test&description=<p>test<%2Fp>

Please add proper issue type id and project id

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

199 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you