Forums

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

Jira Cloud Automation check if multi user select has more than one

Yatish Madhav
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.
May 20, 2022

Hi

We have a multi user select and would like to set the assignee to the first of them.

I could use smart values if the value of the multiselect comes back with something like "jiraAccountID1, jiraAccountId2, jiraAccountId3" ... but how would I get the first one and then set that user as the Assignee?

Please advise how I can do that? Will be much appreciated

Thank you
Yatish

1 answer

0 votes
Martin Müller May 20, 2022

Try 

{{issue.customfield_ID.get(0)}}

works for setting the assignee in my data center environment.

Yatish Madhav
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.
May 22, 2022

Thanks for this @Martin - I am on Jira Cloud

I actually found the solution ... Using something like {{issue.customfield_ID.last}} or {{issue.customfield_ID.first}} on list fields like Multi user fields works perfect.

Thanks again

Suggest an answer

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

Atlassian Community Events