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{{/}}
{{/}}
Based on the documentation, I'd anticipate that isEmpty only works with certain field types
I tested this (with a user picker, number field, and date field) using this syntax instead...
{{#if(not(exists(issue.Story Points.name)))}}
<b>Story Points:</b> is Empty{{/}}
...and it seemed to work :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Brian Martinez
Are you in Cloud or Data Center?
If in cloud, and you need to send 1 email per issue, you dont need {{#issues}}. Please remove that and its ending paranthesis {{/}}.
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.
Here is the email I get. I am expecting all of the fields to show as empty since my test record was purposely left with empty fields.
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.