Forums

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

Need to output the email addresses of multiple users from custom "People" field

Suzy Nicholson August 15, 2022

Hello,

I'm using a custom "people" field in a Jira Software Project (team-managed)

I'd like to test out an automation rule where the Display Names and email addresses of all those users from that custom "people" field are able to be output into the body of an email, preferably separated by a comma and a space ", "

How can I accomplish this?

Right now, it seems like I can only extract the email from the first user in the list, even though it will spit out all of their names.


2 answers

1 vote
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.
August 15, 2022

Hi @Suzy Nicholson 

Two possible things to check on this one:

Please see your other question on this topic, as there is an open suggestion indicating problems with the People field's email address access: https://community.atlassian.com/t5/Jira-Software-questions/Regarding-custom-fields-for-team-managed-projects/qaq-p/2107614

And, that field type is a multiple user field, which is a list.  Please try to use the list iterators to access all of the elements to see how that helps: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/

Kind regards,
Bill

0 votes
Jack Brickey
Community Champion
August 15, 2022

Hi @Suzy Nicholson , welcome to the community!

To be honest I'm not sure if that can be achieved or not. I'm thinking no but that isn't based on anything more than my current experience. I will give it a try but was wondering if you would mind sharing an image of your rule so that I could follow your lead.

Suzy Nicholson August 15, 2022

Jira automation input.PNG

Suzy Nicholson August 15, 2022

With proper captions in redjira automation output.png

Suzy Nicholson August 15, 2022

@Jack Brickey thanks for taking a look into this.

I'd really appreciate if you can think of a potential solution!

It's like it doesn't know how to repeat the query again after each user.
"Display Name" works fine for multiple users though. 

Jack Brickey
Community Champion
August 15, 2022

Thanks. Now to be clear are you wanting to display those individuals that are selected or do you want to include all possible users for that field?

Suzy Nicholson August 15, 2022

Only the individuals who have been entered into that field.
(NOT all possible entries)

Jack Brickey
Community Champion
August 15, 2022

I think @Bill Sheboy input is sound and I would add this article as a good reference- examples-of-using-smart-values-with-lists .

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events