Can't copy value from a field in an automation rule

Emiliano Visioli
Contributor
May 21, 2024

Hi all,

I need to copy a specific field value when an issue transit to a specific status.

I would use the Edit field action but I can't find the field form where to copy the value in the list.

It's a Select list (multiple options), how can I proceed?

Here's the automation draft:

Screenshot 2024-05-21 164327.png

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

Hi Emiliano,

That's because you can't copy multiple values from a field to a single value field. Assignee only allows one value. 

But try putting this in the Assignee field (not Copy but the blank field): 

{{issue.customField_10347.get(0)}} where 10347 is the ID of your multi-select user field. This codes tells it to use the first value of that field if there are multiple values. 

Emiliano Visioli
Contributor
May 21, 2024

Hi John, I can't find where to put the code, could screenshot an example?

But I think it could not work as I realized that the field where I want to copy value from doesn't contain users but custom value. Am I right?

Thank you,

Emiliano

 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

Click the 3 dots next to the field and select Set Value. In that blank field is where you will type the code. When done typing it, you will need to click on the value below to set it (you can't just type it and hit enter). 

Emiliano Visioli
Contributor
May 21, 2024

ok thanks but as supposed it return an error like "user not exist", I guess because the values in the field are not "users" but custom values.. to copy value in the Assigne field, the root field must include users as well.. right?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

Yes, to put a value in the assignee, it must be a user. Or the users email address.

Emiliano Visioli
Contributor
May 22, 2024

ok, thanks.

Is there a custom field that allows to select a limited number of users? I see only a user picker but without limitations.

I'd like to have a field where I have 3 options with 3 users.

Thank you,

Emiliano

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2024

No, not with a multi-user picker field - you can't control the number of users allowed for the field. 

Suggest an answer

Log in or Sign up to answer