I am trying to set up an automation job which sends out an email to the reporter of the issue is certain fields are missing data. Here's the email template I use in the send email section of the automation.
This epic is missing the following fields
<ul>
{{#if(issue.fixVersions.isEmpty)}}
<li>No fix version is assigned to the epic. Epic is empty</li>
{{/}}
{{#if(not(exists(issue.fixVersions.name)))}}
<li>No fix version is assigned to the epic</li>
{{/}}
{{#if(not(exists(issue.components.name)))}}
<li>The epic does not have any components assigned.</li>
{{/}}
{{#if(components.isEmpty)}}
<li>The epic does not have any components assigned. Component is empty</li>
{{/}}
</ul>
the fixversions work but the components conditional statement does not get triggered.
I have logged components.name and it is indeed empty so I am not sure why the message above is not displayed in the email.