Hello
I am using scriptrunner postfunction Send a custom email, to send email & in the email body, I need to include some custom field values. I am trying to get the field values with below expression, however, it is not working.
issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("MyField"))
Could you please help me with the information, how can I include custom field value in the email please ?
Thanks!