Below is a template that I have for when stories are closed with missing information. I have an automation that triggers the email when the JQL finds that there is missing information. I am trying to only show items in the required section that are null, but in trying the conditional formatting I am not able to get it to work properly as the email comes back empty after the Required Fields text.
The following {{issue.issuetype.name}} issue was updated to {{issue.status.name}} with missing requirements. Please review below.
<b>Assignee:</b> {{issue.assignee.displayName}}
<b>Summary: </b>{{issue.summary}}
<b>Status:</b> {{issue.status.name}}
<b><u>Required Fields</u></b>
{{#issues}}
{{#if(issue.customfield_12018.displayName.isEmpty)}}
<b>Dev Engineer:</b> is Empty{{/}}
{{#if(issue.customfield_12019.displayName.isEmpty)}}
<b>QA Engineer:</b> is Empty{{/}}
{{#if(issue.Story Points.isEmpty)}}
<b>Story Points:</b> is Empty{{/}}
{{#if(issue.customfield_12131.isEmpty)}}
<b>Business Unit:</b> is Empty{{/}}
{{#if(issue.ccustomfield_12020.shortDate.isEmpty)}}
<b>Requested Due Date:</b> is Empty{{/}}
{{#if(issue.components.name.isEmpty)}}
<b>Jira Components:</b> is Empty{{/}}
{{/}}