...
This script defines a post function to send a custom Approve
email notification in Jira Service DeskManagement. You can adapt it for other custom email use cases as well.
...
Please change
ENVIRONMENT SPECIFIC VALUES
according to your setup.issue object
is already attached to the script, you can use it directly.assetCustomFieldAndValueList
is attached to script which holds asset custom field values with detailed assets information. See AssetCustomFieldAndValue for class details.Screen has two asset custom fields and only asset names are sent as email. Attributes can be fetched as well. For more information, refer to Sample Groovy Scriptsscripts.
Email is sent to multi-select users custom field values. To send a single user custom field (for example, reporter), please modify
getRecipientEmails
method. This returns one email, so there is no need to have a loop fortoEmails
.
...