Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting issue in the Automation email containing project's updates happened in the last 7 days.

Mohit Edupuganti February 18, 2025

 

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}}Screenshot 2025-02-18 202246.png

1 answer

1 vote
Mohit Edupuganti February 18, 2025

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? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events