Edit issue with additional fields in jira automation failed recently

YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

Hi community,

Anyone know why edit issue with additional fields failed recently?

{ "update": { "Approvers" : 
[ { "set": { "id":"xxxx" } } ] } }

The purpose is to overwrite the existing Approvers field value with "xxx", but add additional approvers.

Thanks,

YY Bro

3 answers

1 accepted

3 votes
Answer accepted
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.
October 15, 2024

Hi @YY Brother 

How did it fail?  Would you please show an image of the audit log details, or did it fail when you were trying to create the rule?

And...is the Approvers field for issues or something else?  Perhaps check to confirm you have the correct smart value, or try the custom field id: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Finally, although I haven't seen an open defect with update / set for this field, I wonder if using the "fields" syntax with the JSON will help as you want to overwrite the value.

Kind regards,
Bill

YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

 

Hi @Bill Sheboy @John Funk ,

Thanks for your help. Below are the screenshots about the rule and log:image.pngimage.png

It worked before, but failed recently. It's for JSM Change Enablement scenario with approval. The related field is Approvers.

Thanks,

Yong

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.
October 15, 2024

I am unclear how that could have worked if the field was always a multiple-select, user field, and now has suddenly stopped working with no rule changes.

Let's try the fields syntax to set the field in one step:

{
"fields": {
"Approvers" : [
{ "id":"xxxx" }
]
}
}

 

0 votes
YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

I used Edit issue with Approvers field directly to make it go ahead.image.png

0 votes
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.
October 15, 2024

Hi YY,

Do you want to override or add? 

To add, follow this format though it is for a group picker field. 

{
"update": {
"Approver groups": [{
"add": { "name": "{{triggerIssue.Group Single Picker}}" }
}]
}
}

YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

Hi John, I want to override the existing approver.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events