...
Each section allows addressees to be identified, in several ways:
Static Addressees - static list of SMTP addresses to be set, of format:
user1@domain.com,user2@domain2.com
Custom Fields - text (single and multi line, containing email addresses as above), user pickers and group pickers also supported
Entities (since JEMH 1.6.5), allows selection of:
reporter
currentAssignee
allWatchers
currentUser
projectLead
componentLeads
requestParticipants
Status colour Yellow title Since 3.1.3
From/Reply-to
...
It is possible to override default Jira behaviour of using the 'action user' display name as the personal part of the notification, e.g. 'Support' could be used. Additionally, it is sometimes desirable to change the from: address that the email uses, this value sets the from and reply to addresses.
...
Post Function Configuration
Part1:
...
Part2:
...
Part3:
...
The Configuration shows that the content of the Email Users custom field will be used, that currently contains 3 addresses as CSV. Attachments are included with a window of 30S between when they were added and when the user triggered the Start Progress transition.
...
In this example, we will implement a check-box field on a workflow transition screen which, only if ticked will a post-function notification be sent.
Set up a check-box custom field
Add the custom field to a screen, and and set that screen to be the one shown during a transition
In either a custom template or in the custom velocity content settings of the post-function, use the following:
Code Block #if (!$issue.getCustomFieldValue("customfield_13200")) $jemhUtils.setInhibitSending(true) $jemhUtils.setInhibitSendingReason("JEMH Postfunction checkbox not ticked") #else START OF CONTENT HERE $issue.getKey() $comment ${baseurl}/browse/${issue.getKey()} END OF CONTENT HERE #end
The above script will need changing to match the custom field ID of your check-box field, and also addition of your own notification content.
Conditionally adding Additional Recipients (project role, specific address, groups)
...