The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Yazici
Contributor
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