Forums

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

Lookup Table ".get" Smart Value not Expanding in #lookupIssues

James Gambrill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2023

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}}

&nbsp;

<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:

2023-08-28_13-48-46.png

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?

0 answers

Suggest an answer

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

Atlassian Community Events