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.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.