We're implementing the Connector for Salesforce and Jira from Service Rocket (now Appfire) in Jira Cloud.
We're setting up this automation that will pull the value of a people field from Salesforce and update the reporter or assignee people field in JIRA.
However, we want to apply one modification: we don't want to update the reporter or assignee people field. Instead, we want to update a custom people field we've created in our project.
We setup the automation as designed and have successfully updated the reporter field.
When we attempt to swap out the reporter field as the target of the "Edit Issue" update with our custom people field, we get an error "data was not an array (customerfield_123456)" where 123456 is our custom field's ID.
The following is the Edit Issue Advanced Field editing / Additional Fields json script we're using (which is standard other than the reference to our custom field name):
This fails:
{
"fields": {
"Custom - field":{"id":"{{webhookResponse.body.accountid}}"}
}
}
This works:
{
"fields": {
"reporter":{"id":"{{webhookResponse.body.accountid}}"}
}
}
I know the field reference "Custom - field" is correct because the error message in the automation audit log returns the custom field ID (not the name).