Hello,
I have an email automation that I use to send a weekly report. I have a jql that gathers all the results. If the status is closed it will list the results in a table. This has been working perfect! But when there is a table with no results I would like it to say "None"
This is the code I'm using
I've attempted to add {{#if(equals(lookupIssues.size,0))}} But it's not working.
Any suggestions?
------------------------------------------------------------------
<table >
<tbody>
<tr>
<th colspan="7" style="background-color: #AAD5FF; Padding: 10px" >Closed items for Week Ending - {{now.minusBusinessDays(1).longDate}}</th>
<tr/>
<tr>
<th style="background-color: #DDEEFF"><b>Epic Link</b></th>
<th style="background-color: #DDEEFF"><b>Key</b></th>
<th style="background-color: #DDEEFF"><b>Summary</b></th>
<th style="background-color: #DDEEFF"><b>Document Link</b></th>
<th style="background-color: #DDEEFF"><b>Comments</b></th>
<th style="background-color: #DDEEFF"><b>Assignee</b></th>
<th style="background-color: #DDEEFF"><b>Updated</b></th>
</tr>
{{#if(equals(lookupIssues.size,0))}}
<tr>
<td colspan="7" style="text-align:center;font-weight:bold;">None</td>
</tr>
{{/}}
{{#Issues}}
{{#if(equals(status.name, "Closed"))}}
<tr>
<td>
<a href="{{epic link.url}}">{{epic link.epic name}}</a></td>
<td>{{Key}} </td>
<td>{{summary}}</td>
<td><a href="{{epic link.Document Link}}">{{epic link.epic name}}</a></td>
<td>{{customField_11726}}</td>
<td>{{Assignee.displayName}}</td>
<td>{{Updated.shortDate}}</td>
</tr>
{{/}}
{{/}}
</tbody>
</table> </div>