I have set up an email automation using Jira automation for the reporter to receive email updates happened in the last -7 days in the project. The reporter receives all the updates in one single table. I am getting the table but there is a huge gap coming in the email above the table. I have attached an image as well displaying the a huge gap above the table. Below is the code I have used -
<strong>📢 Here are the latest updates on the Project: {{project.name}}</strong>
{{#lookupIssues.size}}
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; text-align: left;">
<tr style="background-color: #f2f2f2;">
<th><strong>Summary</strong></th>
<th><strong>Key</strong></th>
<th><strong>Description</strong></th>
<th><strong>Status</strong></th>
<th><strong>Assignee</strong></th>
<th><strong>Created</strong></th>
<th><strong>Updated</strong></th>
<th><strong>Issue Link</strong></th>
</tr>
{{#lookupIssues}}
<tr>
<td>{{summary}}</td>
<td>{{key}}</td>
<td>{{description}}</td>
<td>{{status.name}}</td>
<td>{{#assignee.displayName}}{{assignee.displayName}}{{/assignee.displayName}}{{^assignee.displayName}}Unassigned{{/assignee.displayName}}</td>
<td>{{created.convertToTimeZone("Asia/Kolkata").format("yyyy-MM-dd HH:mm:ss")}} IST</td>
<td>{{updated.convertToTimeZone("Asia/Kolkata").format("yyyy-MM-dd HH:mm:ss")}} IST</td>
<td><a href="yourcompany.atlassian.net/browse/{{key}}">View Issue</a></td>
</tr>
{{/lookupIssues}}
</table>
{{/lookupIssues.size}}
{{^lookupIssues.size}}
<p style="margin-top: 5px;">No issues were updated in the past week.</p>
{{/lookupIssues.size}}
I have tried using padding: 0 and margin: 0 to reduce/remove the space but it is still not working. What could be the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.