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.
Journeys is a brand new feature in Jira Service Management that helps you streamline various processes in your organization that may cross multiple departments, such as employee onboarding or off-boarding that require action from different teams. ✨
Join the EAP →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.