I have a custom field named "Email", which is of type Short Text (single line) and contains an email address.I’m trying to use this field value in the Recipient field of a Jira Automation rule to send an email automatically. However, none of the approaches seem to work — I’ve tried using expressions like:
{{issue.customfield_xxxx}} and {{issue.customfield_xxxx.value}}, and also attempted setting it via entity properties, but I always get the error message:No email is provided in the recipient field.Could you please advise how to properly reference a custom field (that holds an email address) as a recipient in an Automation email action?
Hi @Tiara Pequeno welcome to the Atlassian Community!
I recently faced the same issue when trying to send an automated email using the value of a custom text field (type: Short text) containing an email address.
To make it work, instead of using:
{{issue.customfield_xxxxx}}
I used:
{{issue.fields.customfield_xxxxx}}
This change solved the issue, and the email was sent successfully. You can also add a “Log action” before the email step to validate the value at runtime.
Let me know if it works for you too!
Regards,
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.