Jira users, groups and non-Jira user email addresses can be dynamically added as recipients of Issue, Ad Hoc or Post Function notifications using Velocity scripts. The main use case for this feature is when you depend on the event's context (like the containing issue data) to conditionally add extra notification recipients. This allows you to do things such as notify managers when the issue's priority is Critical.
...
Under the Additional Recipients header you can find the Recipients Script field.
...
The text area input supports Velocity scriptsThis field takes a user-defined Velocity template. Use Ctrl+Space in the editor to view the velocity's context ($recipientUtils
's methods, $context.issue
, etc.).
Resolved recipients will be added as BCC in the notifications.
...