What is the input format for destination emails for the "Send Email" action in Jira Automation?

Anthony Nguyen June 19, 2024

I used accountIDs to get user details in a json. I then built a new string of "[email protected];[email protected]..." as a variable. When trying to send email using this smart value though, it reports:

Could not send email, the 'To' address field is empty

Reading the documentation on "Send Email" does not explain what the input should be. Does anyone know what particular format it has to be?

2 answers

1 accepted

2 votes
Answer accepted
Anthony Nguyen June 19, 2024

For posterity's sake: delimiters should be commas instead of semi-colons! I'm so used to the latter that I didn't even think to try the former.

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 19, 2024

Hi Anthony,

You might want to vote for and follow this request: https://jira.atlassian.com/browse/JSDCLOUD-4309

Also, you should be able to just type in the email address directly: [email protected] - just be sure to click on the option that pops up with that same email address when you finish typing it so that it actually puts that value in the To field. 

Anthony Nguyen June 19, 2024

The email addresses vary each time the automation is supposed to run so hardcoding it isn't an option unfortunately. I'm guessing I need to know what clicking on that option is doing behind the scenes to do the same.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 19, 2024

Your other option is to use a custom short text field and populate the field either on the screen or using the build you are doing above. This is what it would look like in the To: field: {{customfield_10134}} where 10134 is the ID of your custom field. 

If you use multiple values in that field just separate them with a comma. 

[email protected], [email protected], [email protected]

Anthony Nguyen June 19, 2024

The issue was the semi-colons! The To field can use the string but the delimiters should be commas.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events