Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

emailAddress attribute missing in certain steps of an automation

Qin Han April 22, 2025

Hi Community! I am working on some automations and emailAddress for custom people field goes missing for some of them but works for some others. I need help to make it work in all automations. Thank you in advance!

  1. Screenshot 2025-04-23 103657.pngThe first 'send email' always return error--'Unable to send the email as the recipient's email address wasn't provided'. So I included {{issue.customfield_11542}} in the second email which shows the image in second point.
  2. Screenshot 2025-04-23 103718.png
  3. Screenshot 2025-04-23 103603.pngThen I set up a manual trigger to try again on the same issue at the same status. This time, not only was the email sent, emailAddress attribute is shown too.Screenshot 2025-04-23 104356.png

3 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2025

Hi @Qin Han 

The emailAddress attribute for a "People" type field in team-managed projects is not available to automation rules.  Here is the suggestion / defect to fix that: https://jira.atlassian.com/browse/AUTO-519

The workarounds depend upon the specific scenario:

  • when only one value is needed, call the REST API with the user's accountId to get their email address
  • when multiple users' emailAddress values are needed, add a global / company-managed field to your site, include that in the team-managed project, and use that field instead

 

Kind regards,
Bill

Qin Han April 23, 2025

Hi @Bill Sheboy 

Thank you so much for the workarounds!

I decided to use a global/company-managed field for this team project. And just curious, how do you call the REST API in automation?

Regards,

Han

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2025

Here is a how-to article for calling a REST API endpoint from a rule using the Send Web Request action:

https://community.atlassian.com/forums/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

The specific endpoint to get the user data for their accountId is this one:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get

Qin Han April 24, 2025

Thank you so much! I'll read them.

0 votes
Qin Han April 23, 2025

Why does the manual trigger work tho?

0 votes
Akash Singh
Community Champion
April 22, 2025

@Qin Han Is it a Team managed or Company managed project where the automation is executed?

What is the field type of customfield_11542, is it a single or multi user picker field?

Qin Han April 23, 2025

@Akash Singh It is a Team managed project and the customfield is a single user picker field.

Suggest an answer

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

Atlassian Community Events