We are trying to update an asset object in an automation rule by using "
The Json works if there is data being passed, but fails for nulls. We tried the following:
{
"objectKey": {{issue.Key.Key.asJsonString}},
"if": {issue.customfield_1.asJsonString.length!=0}
{
"then": {"Description": {{issue.customfield_1.asJsonString}}}
},
"if": {issue.customfield_2.asJsonString.length!=0}
{
"then": {"FieldName": {{issue.customfield_2.asJsonString}}}
}
}
I know that we need to check for nulls, but can't get the syntax right.
If there is any help or documentation, it would be greatly appreciated!
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.