Hi!
I'm using REST API to create issues in Jira. However, I was not able to fill a "Insight object" custom field. I'm getting "data was not an array" and "expected Object" error when passing values to these fields:

The code:
request.post(myhost.com, {
'auth': {
'user': 'user',
'pass': 'pass',
'sendImmediately': true
},
json: {
fields: {
project : {
key : "test"
},
summary: createDescription[i],
description : createInformation[i],
customfield_12300 : createNumber[i],
customfield_10218 : "SERVICE-61413",
customfield_10225 : "SERVICE-61481",
customfield_10226 : "SERVICE-61574",
issuetype : {
name: "test"
}
}
}
} I was trying to fix "data was not an array" error by passing values as
customfield_10218 : ["SERVICE-61413"],
customfield_10225 : ["SERVICE-61481"],
customfield_10226 : ["SERVICE-61574"],
but this resulted in "expected Object" error:

Also I've tried to pass these values not as object key but object name, but this didn't work either.
How do I pass values to Insight object customfield correctly?