Skip to content

Instantly share code, notes, and snippets.

@jgeewax
Created August 20, 2010 23:56
Show Gist options
  • Select an option

  • Save jgeewax/541474 to your computer and use it in GitHub Desktop.

Select an option

Save jgeewax/541474 to your computer and use it in GitHub Desktop.
jira@jira1:~$ cat ~jira/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/description-edit.vm
#controlHeader ($action $field.id $i18n.getText($field.nameKey) $fieldLayoutItem.required $displayParameters.get('noHeader'))
## setup some additional parameters
$!rendererParams.put("rows", "12")
$!rendererParams.put("wrap", "virtual")
## Add our default value
#if ($description == '' && $issue.getIssueType().getString('name') == 'Bug')
#set ($description = "Steps taken to produce this bug:\
\
\
Expected Results:\
\
\
Actual Results:\
\
\
Extra Information:\
\
")
#set ($description = $description.replace('\', ''))
#end
## let the renderer display the edit component
$rendererDescriptor.getEditVM($!description, $!issue.key, $!fieldLayoutItem.rendererType, $!field.id, $!field.name, $rendererParams, false)
#controlFooter ($action $fieldLayoutItem.getFieldDescription() $displayParameters.get('noHeader'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment