How to set Insight fields via Automation for Jira?

Koczka Bence May 14, 2021

I want to update fields in a Insight object schema, from automation for Jira.

When I set up a manual trigger for testing, and I select the field with,

{
"fields": {

"customfield_2727": [
{
"appKey": "com.riadalabs.jira.plugins.insight",
"value": "literally anything"
}
]


}
}

In the audit log I see:

Unknown fields set during edit, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -customfield_2727No fields or field values to edit for issues (could be due to some field values not existing in a given project)



My undestanding is, after a lot of googling, that somehow the insight custom field has to be linked somehow with the issue I'm triggering with?

How can I access, and update fields of Jira Object Schemas, that are completely separate from this project/issue?

Thanks in advance

1 answer

0 votes
Jesse Kona October 21, 2022

Fields of the type "Insight Object" are set using IQL.

Here is an example looking up a record with a hard-coded value of "Area1" in the "Name" field in the Insight table Hard coded IQL.jpg

... and here is an example that sets an Insight Object field to the value in another Insight Object field (ID=10120) (connected to the same table).

Set to another insight fields.jpg

Suggest an answer

Log in or Sign up to answer