...
This script defines a post function to send a custom Approve
email notification in Jira Service Desk. You can adapt it for other custom email use cases as well.
On this page:
|
---|
Script parameters
Some notes about the script:
Please change
ENVIRONMENT SPECIFIC VALUES
according to your setup.issue object
is already attached to 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 Scripts.
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
.
...