Auto fill description field

Description Field:I need a template that will automatically get loaded in the description field, which will contain the following information whenever I create a JIRA issue for a certain issue type like bug

Version

Precondition

Reproduction Steps

Expected Results

Actual Results

Additional Information

Sample Testcase

 

3 answers

0 vote
Mahesh S Community Champion Jun 15, 2016

Please add this javascript into the description of the field 'description' in field configuration.

<script type="text/javascript">
var issuetype = document.getElementById("issuetype");
var description = document.getElementById("description");
if (issuetype.value = "bug") { 
description.value = "Version: \n Precondition: \n Reproduction Steps: \n Expected Results: \n Actual Results: \n Additional Information: \n Sample Testcase: \n" ; 
}
</script>
Mahesh S Community Champion Jun 16, 2016

Updated this comment.

0 vote

I'd recommend that you don't.  Every system I've seen with defaulted text like this is littered with tens of thousands of identical (and hence useless) descriptions filled with just the default.

0 vote
Mahesh S Community Champion Jun 15, 2016

@Nic Brough [Adaptavist] Very true!! People will stop giving importance for filling the description field while creating the issue. 

@Luvo Though you can use it only if you are very sure of your purpose.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

541 views 1 18
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