Hi Team, We are trying to generate an HTML format email with tabular data, and given below is the code for the same
1) How to get border added to the table
2) How to add background color
3) Control the styling aspect (Width of column)
We checked the HTML markup option but the wiki has only an option for the font if we add the manual table styling in getting applied but not working with lookupIssues.
https://support.atlassian.com/cloud-automation/docs/convert-wiki-markup-to-html-or-plain-text-in-jira-automation/
Sample Mail without border and styling support.
Send Email Option Content:
Hey Team, we still have the following issues left to complete this sprint:
<br><br>
<p> Total number of Open Issues are {{lookupIssues.size}} </p>
<table>
<tr style="border: 5px solid black">
<th style="text-align: left">Assignee</th>
<th style="text-align: left">Summary</th>
<th style="text-align: left">Status</th>
<th style="text-align: right">Last Updated</th>
</tr>
{{#lookupIssues}}
<tr>
<td>{{assignee.displayName.htmlEncode}}</td><td><a href={{url.htmlEncode}}>{{summary.htmlEncode}}</a></td><td>{{status.name.htmlEncode}}</td><td style="text-align: right"><font color="red">{{updated.longDate.htmlEncode}}</font></td>
</tr>
{{/}}
</table>
Regards,
Pawan