Auto-populate the jira description field with standard text

SteveK October 26, 2011

It's our team's practice that all jira items contain the following standard text to increase level of detail for ability to duplicate an issue:

*************************

STEPS TO REPRO:

1.

EXPECTED RESULT:

ACTUAL RESULT:

CHANGES REQUIRED:

*************************

Is there a way to auto-populate the description field for all jira items with standard text such as this?

2 answers

1 vote
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2011

Hi Steve,

I'm not sure if this is possible in OnDemand but in "normal" JIRA you would just change the field configuration of the description system field 'description'
to the following Javascript code:

<script type="text/javascript">
var description = document.getElementById("description");
if (!description.value || description.value == "") {
description.value = "**********\nSTEPS TO REPRO\n...." ;
}
</script>

If this cannot be done the other alternative is see is a speakeasy plugin extension. Again i do not know if this is available in OnDemand.

So let's hope this answer already helps :-)

Best regards,

Dieter

Sara Lam
Contributor
September 28, 2012

Thank you so much Dieter. I looked for this for a while. Wish it's listed in the documentation https://confluence.atlassian.com/display/JIRA044/Setting+a+Default+Value+in+the+Description+Field as other suggestions.

Sara

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2012

JIRA Ondemand doesn't support javascript hacks, unfortunately!

Suggest an answer

Log in or Sign up to answer