Hi All,
I am trying to send a custom email using "Scriptrunner send custom email" template where I am retrieving values of some issue fields. I am able to it successfully for summary, description etc but not able to understand how I can do it for multi user field "Implementer". The code that I used below extracts the Username(id) rather than the Full Display name. Rest of other fields are working as expected.
When I use .getDisplayName() method it errors out. Could you suggest a solution for it?
The following Change request has been approved (Issue $issue).
Summary:
$issue.summary
Description:
$issue.description
Approved Window Start:
<% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Approved Window Start")) %>
Approved Window End:
<% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Approved Window End")) %>
Change Implementer:
<% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Implementer")).getDisplayName() %>