Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

value of a custom field group picker in an html email body

Consulente Atlassian
Contributor
March 21, 2022

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?

 

Schermata 2022-03-21 alle 14.09.05.png

1 answer

1 accepted

0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
March 27, 2022

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:-

workflow.png

Below is the sample issue that I have tested with:-

image1.png

And below a print screen of the Email that is sent:-

image2.png

I hope this helps to answer your question. :)

Thank you and Kind regards,

Ram

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events