How to extract user in user picker field value to send email through the automation.

Harish
Contributor
February 21, 2024

I tried to send the email through the automation. But the tricky part is the user in user picker field by name AccountManager. i tried many ways like

{{issue.AccountManager.emailAddress}}
{{issue.AccountManager.value}}
{{AccountManager.accountId}}
{{issue.AccountManager.accountId}}

Still i am unable to find a solution. can anyone please help?

2 answers

0 votes
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.
February 21, 2024

Hi @Harish 

What type of project are you using: company-managed or team-managed?  You may find this information at the lower-left side of the screen expanding area.

And if team-managed, is the AccountManager field a People field added only for that project?

 

If so, there is no emailAddress attribute available for People fields in automation rules.  Here is the suggestion to add that capability, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/AUTO-519

A complicated work-around for this scenario is to call the REST API functions with the Send Web Request action to find the email address for the user and then include that in the email.

Kind regards,
Bill

Harish
Contributor
February 23, 2024

Hi @Bill Sheboy 

Its really interesting to listen like this kind of answers. As you said it's a team managed Project. Thats the reason i am unable to do this task.

Thank you @Bill Sheboy

Regards,
Harish

Like Bill Sheboy likes this
0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

Hi @Harish ~ provided the AccountManager field is a single-select user picker field {{AccountManager.emailAddress}} should work.  If not, try adding a log action to your rule to get more info...

Harish
Contributor
February 23, 2024

Hi @Laurie Sciutti 

 

Thank you for your response. Hear the answer is its a Team managed project, so it is not possible to do as @Bill Sheboy said.

 

Thank and Regards,

Harish

Suggest an answer

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

Atlassian Community Events