Select first value from multi select field

Nick Thoman January 15, 2021

I am using the Automation for Jira Plugin. I in my project we have a multi select user picker field called "Testers". There has to be at least one value set but more than one can be in here. When the ticket transitions to "Testing" I would like to assign the ticket to the first tester in the list. Can I do something like, {{Testers}.1}?

1 answer

0 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.
January 15, 2021

Hi @Nick Thoman 

Please try this to access the first item in the list:

{{issue.Testers.first.accountId}}

Here is the documentation to learn more about handling list fields:

https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/

 

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer