Jira Automation - Update custom field on issue transition

Sergei Darienko November 18, 2024

Bonjour

I have two testers on the project and would like a custom field "Tester" (not Assignee, which stays reserved for the Developer) updated whenever one of them transitions issues from Ready for testing to Testing status. I could simply be setting the field to a fixed value, but I'd like it to be updated by whoever initiated the transition. 

So ATM my rule looks like that

image.png


I've tried using smart values but to no avail. Audit log says:

image.png

Any ideas what could've gone wrong?

 

3 answers

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.
November 18, 2024

Hi @Sergei Darienko 

When an automation rule edits a field, that usually may be done by selecting the field from the dropdown list or using JSON.  But both cannot be selected for the same field in the same edit action, as you have done.  Try removing the JSON and just using the smart value directly to set the field:

Kind regards,
Bill

0 votes
Marc - Devoteam
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.
November 18, 2024

Hi @Sergei Darienko 

@Gosia Adamska  is right, but is the Custom Field you are using a "User Picker" field?

If not, please make sure to use a user picker field as the custom field type.

Sergei Darienko November 18, 2024

yup, it does, doublechecked it before trying any suggestions mentioned here

0 votes
Gosia Adamska
Contributor
November 18, 2024

Hi. First check the JSON in any online JSON validator. There is one spare }.
Then check if the rule shows any other errors.

Sergei Darienko November 18, 2024

Doing now

Sergei Darienko November 18, 2024

@Gosia Adamska removed the bracket, yet the log return the same error

Gosia Adamska
Contributor
November 18, 2024

OK. Another error might be connected to the customfield.
Instead of the customfield name, please put "customfield_id".

Like Sergei Darienko likes this
Sergei Darienko November 18, 2024
{
"fields": {
"customfield_Id=10038": {{initiator.accountID}}
}
}

I'm a bit confused about how should I enter the field ID - will the equation symbol do the job? sorry for midwitted questions, not very tech savvy

Marc - Devoteam
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.
November 18, 2024

Hi @Sergei Darienko 

Notation is, customfield_10038

Like Sergei Darienko likes this

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