I try to add customfield into email template like described here https://developer.atlassian.com/server/jira/platform/adding-custom-fields-to-email/ and it works fine for text format, but for html instead the value of field i get a code of getting value
Hi @aas ,
Please refer below link, this may help you.
https://community.atlassian.com/t5/Jira-Core-questions/Add-Custom-Field-Value-to-Email-Template/qaq-p/1136371
Thanks I've alrady found it. Replacing this line
$textutils.htmlEncode($issue.getCustomFieldValue($customfield), false)
with this
$customFieldManager.getCustomFieldObject("customfield_id").getValue($issue)
solved the problem. But why that error not fixed in the tutorial https://developer.atlassian.com/server/jira/platform/adding-custom-fields-to-email/
It looks like you're new here. Sign in or register to get started.