I know I have to modify the file IssueUpdateBatcher-subject.vm from the plugin batchers-1.0.27.jar located in atlassian-jira/WEB-INF/atlassian-bundled-plugins.
What I want to do, is to add the following elements in the mail subject:
- status
- type
- component
- customfield_10008
I found how to do for the first one (status) => by adding $header.issueStatus.name
But I didn't find how to do for the others, it should be something like $header.issueType and $header.issueComponent but it seems not to work.
For the custom field, I tried the two following solutions (from https://confluence.atlassian.com/adminjiraserver/adding-custom-fields-to-emails-batched-notifications-968669988.html) but both don't work.
#if(${customFields.get('customfield_10008').getValue()})
#set( $severity = $issue.getCustomFieldValue($customfield) )
#end
#if(${customFields.get('customfield_10008').getValue()})
#set( $severity = ${customFields.get('customfield_10008').getValue()} )
#end
The end of the customized file IssueUpdateBatcher-subject.vm is:
#set( $status = $header.issueStatus.name )
#set( $emailsubject = "(${key} ${status}) ${severity}"
$i18n.getText('issue.update.batch.mail.subject', [$emailsubject, $header.issueSummary])
Can anyone help me?