We trying to use an automation rule to create an Asset object using the Create Asset with ScriptRunner extension. We were able to create an object using the format example of {{issue.summary.asJsonString}}.
{
"objectTypeId": 217,
"DESIO": {{issue.summary.asJsonString}}
}However, We need to assign the "DESIO" attribute to a Custom Field named "DESIO Number", but are having trouble with the syntax as seen in the screenshot. We also tried using:
{
"objectTypeId": 217,
"DESIO": {{issue.customfield_12016.asJsonString}}
}
But that doesn't work either. Does anyone have the format we need to use for Custom Fields? The Asset object using the Create Asset extension requires a JSON format. I'm just not sure how to pass a Custom Field in that format.