Update multiple user picker based on attributes in Insight Object CF

Alena Fricova January 15, 2023

Hello,

I am trying to get multiple users (Change Advisory Board) into custom field with manual automation. Automation has to select members of Chnage Advisory Board based on Insight Object Custom Field XY and its attribute CAB.

I did try Edit Issue with:

{
"update": {
"Change Advisory Board (CAB)": [{
"set": {
"accountId": "{{issue.customfield_12318.CAB}}"
}
}]
}
}

 

....where customfield ID is ID of XY Insight Object Custom Field and still I am getting an error: (data was not an array (customfield_13566))

 

Please help

 

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Alena Fricova January 16, 2023

Thank you, in the end I resolved it with:

{
"fields": {
"NameOfCustomFieldToBeUpdated": {{NameOfInsightCFWhichAttributeWe Fetch.NameOfAttribute.flatten.asJsonObjectArray("id")}}
}
}

0 votes
Semih Tolga Yazıcı January 15, 2023

I think if you want to avoid that error, you might need to use the customfield like below:
"customfield_XXXX" : [{"key" : "EXAMPLE-1"}]

Also this article can help:
https://confluence.atlassian.com/jirakb/copying-values-between-asset-object-field-and-multi-select-custom-field-using-automation-1141504943.html

TAGS
AUG Leaders

Atlassian Community Events