Hi,
I am trying to configure a script listener to send a notification when there is a change in a custom field. I found an example in the script runner doc and it looks pretty straightforward but there is not mention about the syntax when the receiver of the email is an specific email address. Below is an excerpt of the listener where the email is sent to reporter, assignee, watchers, voters, the admin user and member of the jira-administrators group but I am not sure what is the syntax when the recipient is an specific email address, such as example@mydomain.com. Can you please help?
Thank you
to: [ reporter: issue.fields.reporter != null,
assignee: issue.fields.assignee != null,
watchers: true,
voters: true,
users: [[ name: 'admin' ]],
groups: [[ name: 'jira-administrators' ]]
]