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}}
}
We kept testing and were able to get the automation rule to work correctly!! The Json format of
{
"objectTypeId": 217,
"DESIO": {{issue.customfield_12016.asJsonString}}
}
is correct! But since the custom field was just created in the prior step of the automation rule, I had to add a step to "Re-fetch the Issue data"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.