Conceptually the idea is to dynamically create an HTML table using lookupIssues and dynamically set the background-color of the Status column to a color based on matching the "status.name" of the lookupIssues value and returning a HEX value for the color.
This is done in a Send email action.
The HTML looks like this:
<!doctype html>
<html>
<body>
{{issue.description}}
<table border="1" style="border-collapse:collapse;width:100%">
<tr style="background-color:#D6DBDF">
<th style="width:10%">Key</th>
<th style="width:60%">Summary</th>
<th>Status</th>
</tr>
{{#lookupIssues}}
<tr>
<td><a href="{{url}}">{{key}}</a></td>
<td>{{summary}}</td>
<td style="background-color:{{tableColors.get(status.name)}}">{{tableColors.get(status.name)}}</td>
</tr>
{{/}}
</table>
</body>
The problem is when I get the table back in the email, the {{tableColors.get(status.name)}} is not expanded properly in the #lookupIssues output. I put this value in the table cell as a test of the output. It should actually just be status.name for the actual cell value.
Here's what the email table looks like in Outlook 2016:
The Lookup table matches the status of the issue to output the HEX value of the background-color for the HTML table.
Is this expected behavior? Does anyone know?