I want to send an email via script runner send custom email in the workflow, but I can not correctly read the value of a custom field group picker in an email body html where am I going wrong?
Hi @Consulente Atlassian
For your requirement, you should try something like this:-
<html><body>List of Groups: <%def groupPicker = cfValues['Sample Group Picker']def groupNames = []if(groupPicker) { groupPicker.each { groupNames << it.name }}out << groupNames%></body></html>
Below is a print screen of the Post-Function configuration:-
Below is the sample issue that I have tested with:-
And below a print screen of the Email that is sent:-
I hope this helps to answer your question.
Thank you and Kind regards,
Ram
It looks like you're new here. Sign in or register to get started.