Forums

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

How to get first user from multiselect custom field jira

Shugyla Omirbay March 16, 2023

Hi! So, in my project we have a multi select user picker field called "Responsibles". 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 responsible in the list. How do I select this first user?

1 answer

1 accepted

2 votes
Answer accepted
Najm Polaris
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.
March 16, 2023

Hi @Shugyla Omirbay ,

you can achieve this using automation. 

1. Create an automation which is triggered when an issue is transitioned to "Testing". 

2. Edit the issue and in the assignee field use smart value to achieve this. 

You need to do something like this

{{issue.customfield_10062.value.get(n)}}

This will return the selected values.  For example, I have

Option1
Option2
Option3
Option4
Option5

User selects 1 and 3

{{issue.customfield_10062.value.get(0)}} will return Option1

{{issue.customfield_10062.value.get(1)}} will return Option3

 

Reference here https://community.atlassian.com/t5/Jira-Software-questions/How-to-reference-each-value-of-Multi-select-custom-field-with/qaq-p/2187121

Shugyla Omirbay March 17, 2023

@Najm Polaris  Thank you so much! It helped 

Suggest an answer

Log in or Sign up to answer