Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,623
Community Members
 
Community Events
168
Community Groups

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

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

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 Leader Aug 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.

With proper captions in redjira automation output.png

@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 Leader Aug 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?

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

Jack Brickey Community Leader Aug 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
Site Admin
TAGS

Atlassian Community Events