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,300,186
Community Members
 
Community Events
165
Community Groups

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

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

Try 

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

works for setting the assignee in my data center environment.

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
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you