Hi,
my JSON returns invalid as soon as one or both Assets custom fields are empty when I run an automation that clones issues from one project to another.
This is what my JSON looks like, when both fields contain objects - it is valid:
{
"fields": {
"customfield_13400": {{issue.customfield_13400.asJsonObjectArray("key")}},
"customfield_11501": {{issue.customfield_11501.asJsonObjectArray("key")}}
},
However, if one or both fields are empty - it returns invalid and the automation fails.
How can I use an "If-else-condition" for the two custom fields in JSON?
... something like this: if custom field is empty - do nothing, else copy the value from the custom field
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.