Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Consulente Atlassian 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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