Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing Description field with ondemand JIRA?

Antony Bichon April 17, 2012

Hello,

I would like to customize the Descrpition field in JIRA.

The steps are documented here

http://confluence.atlassian.com/display/JIRASTAGE/Setting+a+Default+Value+in+the+Description+Field

I am not sure how to do this (and if its even possible) with the hosted version of JIRA

3 answers

1 accepted

2 votes
Answer accepted
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.
April 17, 2012
This solution won't work on OnDemand since it requires changing system files. But there is a javascript based solution, just look here: https://answers.atlassian.com/questions/42427/i-am-unable-to-set-summary-field-default-value Of course you have to replace summary by description. If you want this to work in the editvpopup you have to add the javascript code to an DialogReadyHandler as described in https://answers.atlassian.com/questions/27160/how-do-you-embed-javascript-for-a-custom-field-in-jira-5-x
Antony Bichon April 18, 2012

Yep, this works, thank you!

In the Description Edit item of the Fields / Field Configurations I added the following:

<script type="text/javascript">
if (document.getElementById("description").value == "") {
document.getElementById("description").value = "Synopsis:\n\
[a high level description of the problem]\n\
\n\n\
Steps to reproduce:\n\
[include what you did including your test bed/network topology]\n\
\n\n\
Logs/Screen capture:\n\
[Include all relevant logs and screen capture if applicable]\n\
\n\n\
Buddy check:\n\
[Add name(s) of people who confirmed this is a bug]\n\
\n\n";
}
</script>
Follow form

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.
April 18, 2012
Glad to help :) also didin't know the trick how to write continuation lines in js
0 votes
Rob June 1, 2014

Be sure to vote to have the ability to set default values on fields:

https://jira.atlassian.com/browse/JRA-4812

0 votes
Antony Bichon October 9, 2012

This became broken with the new UI... so I just created a new template with the various fields split out

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events