Forums

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

Adding a custom field to email template

Syed Farath Sayeed April 6, 2018

Hi,

I tried adding the custom field into my email template using the following instructions presented here: https://developer.atlassian.com/server/jira/platform/adding-custom-fields-to-email/ But to my surprise an email was successfully sent, but I still cannot see the added custom field in the mail recieved.

Could someone guide me with this please?

Regards,

SD

1 answer

0 votes
Tarun Sapra
Community Champion
April 6, 2018

Hello @Syed Farath Sayeed

Can you please share the code snippet which you have added in the vm file and did you restart jira after making the change? And what is the type of your custom field?

Syed Farath Sayeed April 6, 2018

@Tarun SapraHere is the snippet I used:

#if ($issue.getCustomFieldValue("customfield_10300"))
$stringUtils.leftPad($issue.getCustomField("customfield_10300").name, $padSize): $issue.getCustomFieldValue("customfield_10300")
#end

Yes I did restart JIRA after modifications. I have added a "TextField -MultiLine" custom field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events