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

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 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
atlassian, opsgenie migration, jira service management, incident response, on‑call management, alerting tools, migration guide, devops operations, service reliability, atlassian learning, migration best practices, opsgenie support, IT operations

Join the Opsgenie Migration group 🚚

Heads up! Opsgenie's features are moving to Jira Service Management and Compass. Planning your migration? Join our dedicated group for resources and tips from Atlassian and the Community to ensure a smooth transition.

Check it out ↗
AUG Leaders

Atlassian Community Events