Auto-selection of the user when changing the task status

a_makharov October 17, 2024

Hi!

I have a custom field created by me with the User Picker type, let's call it "Testers". Now, I want to do automation so that in my project, when moving the status from "Ready To Test" to "In testing", this field is assigned the value of the user who transferred to this status.

In automation, I chose:

When: Issue transitioned From Ready To Test to In testing

Then: Edit issue fields "Testers" selected the type "Copy from trigger issue"

But it doesn't work. Tell me what to do?

P.S. if you select Assignee in automation, then there is a "User who triggered the event", in this case it works. But the trouble is that the custom field does not have such values.

image.png

2 answers

1 accepted

0 votes
Answer accepted
Jim Knepley - ReleaseTEAM
Atlassian Partner
October 17, 2024

Hi @a_makharov 

Instead of picking from the list of values in the UI, I would try to set the field to a smart value, specifically {{initiator}} or one of its attributes.

a_makharov October 17, 2024

I've tried this too, but it doesn't work.

image.png

Jim Knepley - ReleaseTEAM
Atlassian Partner
October 17, 2024

Can you be more specific about what happened when you tried? Does the Testers field end up blank? Is it set to an incorrect name? Is there an error?

a_makharov October 17, 2024

or should I do it differently?

a_makharov October 17, 2024

Testers field end up blank

Jim Knepley - ReleaseTEAM
Atlassian Partner
October 17, 2024

I would try setting the field to {{initiator.accountId}} first, and if that doesn't work try using the Advanced field editing using JSON approach.

a_makharov October 17, 2024

Oh, sorry, i used smart values incorrect, {{initiator}} works right.

{
"fields": {
"Testers": { "id": "{{initiator}}" }
}
}

1 vote
Duc Thang TRAN
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.
October 17, 2024

Hello @a_makharov 

You need to choose the option "User who triggered the event"

Hope this can help you :)

 

a_makharov October 17, 2024

User who triggered the event doesn't exist on custom fields

Duc Thang TRAN
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.
October 17, 2024

@a_makharov  

Is strange it work for my custome user picker field  

Maybe you can try  using this one {{initiator.emailAddress}}

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