The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

Hi @Darwin -- 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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events