Editing of custom field failed by automation

Naoki August 4, 2024

I want to edit custom field by automation when issue created.

 

My project is a  team-managed project, added 2 request type.

Their have same name custom field, 'custom_field_1'.

01.png02.png

 

I create automation rule, Edit custom_filed_1 when create request_type_A issue.

03.png

 

I created reqeust_type_A issue, automation status is SOME ERROR in audit log.

04.png

 

How to fix this error?

(Cannnot the same name custom field cannot be set for different request types?)

2 answers

1 accepted

6 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2024

Hello @Naoki 

When you added "custom_field_1" did you created the new custom field twice, once in each request type? Or did you create it just once in one of the request types and then search for it to add it to the second request type? If you created the field twice then you have two fields with the same name.

The system is finding more than one custom field with that name. It may be finding the other fields of the same name in other projects. Because of there being multiple fields with the same name, the automation rule can't determine which one you want to update.

One solution is to change the field name to make it unique. The other suction is  to identify the IS number of the field in each request type and then used Advanced Editing with JSON to edit the field.

For instructions on finding the ID refer to

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

For instructions on Advanced Editing with JSON refer to

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

Naoki August 5, 2024

Hello @Trudy Claspill 

AWESOME! It's the answer I'm looking for.
I searched and set it to the second request type, it worked as intended.

Thank you

Like Trudy Claspill likes this
0 votes
Christopher Yen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2024

Hi @Naoki 

If you check your custom fields, do you have two custom_field_1 's? 

 

to check go (Settings > Issues > Custom Fields) and search custom_field_1 and make sure there is only one.

Naoki August 5, 2024

Hello @Christopher Yen 

I checked Settings > Issues > Custom Fields, but couldn't find it.
(Maybe it's because team-managed project?)

Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events