Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Parse List of Emails into User-Picker

Mathew Lederman
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 20, 2024

Does anybody have suggestions on how to use project automation parse a list of emails addresses in a text field to populate a multi-user picker field? 

Since we can't pass in email addresses through the API I'm trying to avoid forcing the integration teams to do extra work and instead use automation to perform that task.

1 answer

2 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2024

User picker fields will only accept the Atlassian Id of the user, so one way of doing it is to use the Find user endpoint, this will return the Atlassian Id if the user exists. Since you want to do this for a list I would convert the list to a smart value that you can then user in a branch to get the Atlassian Id and add them to the field.

Mathew Lederman
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 21, 2024

@Mikael Sandberg appreciate the response. And apologies in advance if I sound a bit frustrated. Our Cloud migration is not going well because of issues like this that are not an issue in Datacenter.

Thankfully Single-user picker fields will accept email address, it's just multi-user picker and a few other select fields that won't (like Request Participants, the original purpose of this whole process). As email address is a globally recognized unique identifier it seems a little silly that Atlassian won't accept it.

My list is as follows: email@domain.com,email2@domain.com,email3@domain.com  Maybe this doesn't qualify as a list?

Can you point me to (useful) documentation or examples of passing a list from a custom field into a smart value? I can't find any examples other than this which either I'm not smart enough to understand, or it's not all that useful.  

I'm trying this: {{issue.get(0).customField_40201}} and then pass that Smart Value into the Audit Log and the Description field, both yield no results.

Then I guess I have to make an API call to get the accountID and then pass that into the Request Participants field?  I can follow these instructions here: https://community.atlassian.com/t5/Jira-Service-Management-articles/Populate-a-user-picker-field-from-the-description-field/ba-p/2134905.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 21, 2024

Here is an example of an automation that I have that adds users to a multi user picker field.

Screenshot 2024-08-21 at 9.00.49 AM.png

For the API call you can take the returned result and do something similar, just assign the list of email addresses to a smart value and then you can use the for each smart value branch and then in that branch make the web request to get the Atlassian Id and then assign that to the field.

Suggest an answer

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

Atlassian Community Events