I have created a Send custom email when an Issue is created.
In the email template I have logic to add or not add items if there is a value present.
For example, if there is an Assignee I have the email send out the Assignees name -
<% if (issue.assigneeUser != null)
{ %>
<b>Assignee: </b> $issue.assigneeUser.displayName<br>
<% } %>
I have a custom user field called Customer. I need the email to check the custom field and see if the person is in the jira-users Group. If the person is in the Group, then I will send the issue URL to the customer. If the person is not part of jira-users group then the URL will not be sent in the email.
How can I check a custom user field for a particular group membership?
Thanks