Hello-
I have an automation that creates a new issue when a webhook is triggered (the source of the webhook is another Jira instance).
I want to populate data only if it actually exists. For example, if the "location" custom field has a value, add that to the description. If not, add "not selected".
This is what I have in the description field:
{{#=}}IF({{webhookData.fields.customfield_11356.value.isNotEmpty()}},"{{webhookData.fields.customfield_11356.value}}",0){{/}}
Note that this works fine if I only want to return a number, but as soon as I have the value returned if true set to some sort of string, I get an error stating "Unable to parse expression IF(true,"Bettendorf",0): IF(true,"Bettendorf",0)"
I've tried adding double quotes, no quotes, escaped quotes. I can't seem to get this to work.
Any ideas?