Forums

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

Automation to display all users selected in a multi-user picker custom field

Darwin November 15, 2022

Hi there,

I am trying to make an automation to comment on the issue and cc the users selected in the custom field "Point of Contact" (multi-user picker).  Whenever i try to use
[~accountid:{{Point of Contact.accountId}}] it will only work when i select one user, but if i select more than one user it will display "User" in the automated comment.


This is also the case for:
[~accountid:{{issue.Point of Contact.accountId}}]

{{Point of Contact.accountId}}

{{issue.Point of Contact.accountId}}

1 answer

2 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.
November 16, 2022 edited

Hi @Darwin Fernandez -- Welcome to the Atlassian Community!

As your field is multiple-select, the smart value is a list of values.  Try using an iterator to walk them, for example here is the list of mentions with comma delimiters:

Hello to the points of contact:
{{#issue.Point of Contact}}[~accountid:{{accountId}}]{{^last}}, {{/}}{{/}}

Here is an update for you...

Kind regards,
Bill

Darwin November 18, 2022

Thank you! This works well.

Like Bill Sheboy likes this
Alexander Ziegltrum
Contributor
August 3, 2023

Hey @Bill Sheboy 👋

thanks a lot as well😊 That helped me, advancing an automation for project generation and assigning users from a user picker field into a role into the people of the project.

Cheers, Alex

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events