smart value in script runner to send to email

Saqib Dar November 30, 2022

Hi Community,

 I hope all are doing well.

How can I use the smart value of a custom field in an email body? I am using script runner in the post function to send email

${issue.customField_XXXXX} is not functioning it gives errors all the time

Planned Start Date is the custom field i want to use to fetch information

PFA.image.png

1 answer

1 accepted

2 votes
Answer accepted
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

Hi @Saqib Dar 

For custom fields, please use this format:

Custom field value: <% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("MySelect")) %>

Check this Send a Custom Email page for more info.

Saqib Dar November 30, 2022

Thanks @Tansu Akdeniz its working

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events