Documentation on referencing fields in the scriptable template is sparse. A big help would be some SuiteAnswers article explaining even hack methods to determine names to use in scriptable templates. Using the system email template, Standard Issue Notification Email for Employees 2.0, as my base template, I'm trying to reference the Expected Release Date similar to the way Build and Version are already referenced, but I don't know the field name to use. I can see the scriptable field name is dtentative, but that didn't work and I'm aware that references to fields via scriptable templates do not always match references in scripts. I've tried version.dtentative, version.date, version.targetDate, version.expectedDate, version.expectedRelease and version.expectedReleaseDate.
The issue record I'm working with points to a product and version with a populated Expected Target Date, so I'm confident it's not something os silly as missing that. Everything else seems to look fine in the template and the resultant email.
Here's the important excerpt of the current iteration of my code with my changes to the provided code in bold.
<#if preferences.issue_multiple_versions>
<#list issue.fixedInVersion as version><#if version.primary><#assign brokenInVersion = version.version><#assign brokenInBuild = version.build></#if></#list>
<#list issue.targetVersion as version><#if version.primary><#assign targetVersion = version.version><#assign targetBuild = version.build><#assign targetRelease = version.date>/#if></#list>
<#list issue.brokenInVersion as version><#if version.primary><#assign fixedInVersion = version.version><#assign fixedInBuild = version.build></#if></#list>
<#else><#assign brokenInVersion = issue.versionBroken><#assign brokenInBuild = issue.buildBroken><#assign targetVersion = issue.versionTarget><#assign targetBuild = issue.buildTarget><#assign targetRelease = version.date><#assign fixedInVersion = issue.versionFixed><#assign fixedInBuild = issue.buildFixed>
</#if>
<#if targetVersion?has_content>
<tr style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10pt;">
<td style="text-align: right; vertical-align: top; color: #808080; white-space: nowrap;">Target</td>
<td width="16"> </td>
<td style="vertical-align: top; width: 80%;">${targetVersion} <#if targetBuild?has_content>(${targetBuild})</#if> and release date: ${targetRelease}</td>
</tr>