...
It's recommended to use the standard recipients configuration (notify reporter, notify watchers, etc.) when the recipients are not conditional.
Conditional Recipients
Conditional recipients in Issue Notifications
To add conditional recipients in notifications, go to Notifications -> Issue and edit your mapping by clicking in on the Cog icon.
Under the Additional Recipients header you can find the Recipients Script field.
...
Info |
---|
JEMHCloud doesn't duplicate emails. if an email has been resolved by several configurations (static or script), the recipient will receive the notification only once. |
Conditional recipients in Ad-Hoc Notifications and Post Functions
Recipients scripts can be added to AdHoc and Post Function Notifications as TO, CC or BCC. Each script resolves the recipients for each type. E.g.: A recipient the CC script resolves, will receive the email as CC.
Velocity contexts and notification mechanisms are the same in all three features (Issue, AdHoc and Post Function notifications)
Examples
The following examples can be used in Issue, Adhoc and Post Function notification:
...
Note |
---|
Adding a group by script (addGroupRecipients method) requires workaround user to be set. |
Testing
Issue notifications can be tested by creating or updating Issues through JIRA user interface, JEMH Cloud's email processing or JEMH Cloud's test cases. These actions will generate issue events that JEMH Cloud listens for.
You can see these events and the processing outcome by going to JEMHC configuration -> Auditing -> Eventsconfiguration>Auditing>Events.
After being processed, an event will have a report showing the recipients resolved, notifications sent and the problems or warnings found. Use these reports to validate the recipients the script has resolved. The below is an example of a an Event Report taken from JEMHC>Auditing>Events. As you can see, one of the notification recipients has "(Script)" after their address, which signifies that this recipient was added due to the use of a velocity script.
...
Warning |
---|
Re-running an event will resend the emails. To avoid spamming your users, use a test mail server like mailtrap or disable the mail server by going to Notifications -> Message Outbound. |
Related Articles
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|