I'm trying to write an IF statement for the Content section of the Send Email Automation. I have a list of fields and I want the Header and the value to show only if the value is not empty. However, the Header in this example "Business Reason Other" is consistently showing. Is there a way to modify this so that it only shows when the value is not empty?
{{ #if (issue.customField_10323.isNotEmpty) }} Business Reason Other: {{issue.customField_10323}} {{ /if}}
I misread the question at first as being if/else, but try separating it out into 2 IF statements, it looks like having both a text value and a smart value messed it up:
{{#if(issue.customField_10323.isNotEmpty)}}Business Reason Other: {{/}}{{#if(issue.customField_10323.isNotEmpty)}}{{issue.customField_10323}}{{/}}
Actually I just tried out my version of
{{#if(issue.customField_10323.isNotEmpty)}}Business Reason Other: {{issue.customField_10323}}{{/}}
and it worked ok, so maybe it's the spaces before and after #if that it doesn't like
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stephen, that is what the issue was. Thank you very much for your help
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.