Forums

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

How to get email address from approvers field on team managed project?

Rahmat January 21, 2025

Hi,

I have team managed service desk with approval workflow. The Aprovers field itself is also team managed field.

Screenshot 2025-01-22 at 11.42.36.png 

How to retrieve the email address value from the Automation using smart values? I use 

{{issue.Approvers.emailAddress}} but it's empty and using the Approvers customefield {{issue.customfield_10139}} is not working too.

2 answers

0 votes
Valerie Knapp
Community Champion
January 21, 2025

Hi @Rahmat , welcome to the Altassian Community and thanks for your post.

Please can I ask why you want the email address?

Can you not put a comment and mention the Approver? 

Can you explain a bit better please the use case and what you are trying to do / achieve?

Best wishes

Rahmat January 22, 2025

Hi,
I'm working on some automation to retrieve Slack ID by email address. I will use the email address as payload to hit slack API and store the Slack ID. For example like this:

https://slack.com/api/users.lookupByEmail?email={{issue.Approvers.emailAddress}}

 

0 votes
Kai Krause
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.
January 21, 2025

Hi, 

if this is returning empty, you might need to iterate over the users in the Approvers field. You can do this using the following smart value:

 {{#issue.Approvers}}{{emailAddress}}{{/}}

This will loop through each approver and retrieve their email addresses.

Try to test the same with the customfield. 

 {{#issue.customfield_10139}}{{emailAddress}}{{/}}

Hope it helps. 

BR
Kai 

 

Rahmat January 22, 2025

unfortunately it is still empty

Kai Krause
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.
January 22, 2025

Hi, my bad. Sorry. 

In team managed projects you are probably running in to the following limitations on team managed project in relation to automation;

 https://support.atlassian.com/cloud-automation/docs/limitations-in-team-managed-projects-for-automation-rules/ 

I teswt it in a companey managed project, there it works, but not in a team managed project. 

BR
Kai 

 

Like Laurie Sciutti likes this
Rahmat January 27, 2025

yup, I ended up by changing to company managed project.

thanks

Suggest an answer

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

Atlassian Community Events