Hi,
I'm trying to implement a custom email with grooy script runner plugin as a post function on a workflow transition.
I would like to insert in the email a logo, this logo should be different based on a custom field selection.
How can I check the custom field value and, based on its value, select the right logo path?
Thank you in advance
Regards
Arianna
Hi Arianna,
You could use something like this as your template:
<% if (issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("textfield")) == "logo") { %> use logo1 <% } else {%> use logo2 <% }%>
You can also find some documentation here: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Sendacustomemail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.