I have an email template that needs to show a cascading fields value if not empty. I've tried {{#if not(issue.fields.customfield_12909.value.isEmpty)}} or just {{#if issue.fields.customfield_12909.value}} and neither evaluates to true or false. I can add the field data to the email using {{issue.fields.customfield_12909.value}} - {{issue.fields.customfield_12909.child.value}} so I know it works in the email but it will just not evaluate in an #if statement.
Looking forward to any help.
Hi @Tom Scoggin
What if you would use:
{{#if(issue.customfield_12909.value.isNotEmpty()) }}
issue.customfield_12909: {{issue.fields.customfield_12909.value}} - {{issue.fields.customfield_12909.child.value}}
{{/}}
That worked. Thanks!
Note: Just before you provided this, I was able to also perform this by creating a variable for the cascade field and evaluate against the variable. See below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.