HTML code for notification system

Teja March 26, 2024

Hi ,

I want to generate a weekly report of closed issues and send this project managers. I have successfully drafted HMTL context. Now, I want to include total number of issue close = count(). 

HTML code

Total number of issues closed this week = <count> 

<h1>Weekly Report - CDCR </h1>
< var count =
<table border="1">
<tr>
<th>Key</th>
<th>IssueType</th>
<th>Summary</th>
<th>Status</th>
</tr>

{{#lookupIssues}}

<tr>
<td><a href="{{url}}">{{Key}}</a></td>
<td>{{issueType.name}}</td>
<td>{{summary}}</td>
<td>{{status.name}}</td>
</tr>

{{/}}

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 26, 2024

Hi @Teja 

Does your Lookup Issues result contain all of the issues?  If so, please try using the size list function, perhaps with a default value of 0:

{{lookupIssues.size|0}}

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.size

Kind regards,
Bill

Teja April 2, 2024

Well done!

Thanks Bill

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events