I want to be able to use Jira Automations to send an email to the new person in a user picker field (Assignee, custom, etc.) and not all people. I want this to trigger on 2 different user picker fields so I want to use the {{fieldChange}} smart value but it does not provide the email address.
Scenario 1
For example, when a new person is assigned to a Jira Issue I want to trigger and send only that new person an email.
Scenario 2
When a new person is added to a multi-person person selector custom field I want to trigger and only send an email to that new person and not others.
I have tried
In the 'Send an email" action I've tried adding the following to the "To:" field but none have succeeded.
- {{#fieldChange}}{{emailAddress}}{{/}}
- {{fieldChange}}
- {{fieldChange.to}}
- {{#fieldChange}}{{emailAddress}}{{/}}
- {{addedfieldChange.values}}
The Error:
Send Email:
Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty.
The same error happens for all options.
Related questions:
https://community.atlassian.com/t5/Jira-Software-questions/How-can-I-get-email-address-from-changed-field/qaq-p/1484803
https://community.atlassian.com/t5/Jira-questions/Jira-Automation-How-to-send-mail-only-to-added-User/qaq-p/1443188