Hello,
I am attempting to modify the single-word.vm to include Due Date in the subtasks portion of the document. Here is what I have done so far with null results:
<table class="grid" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#f0f0f0">
<td>
<b>$i18n.getText('issue.field.key')</b><br/>
</td>
<td>
<b>$i18n.getText('issue.field.summary')</b><br/>
</td>
<td>
<b>$i18n.getText('issue.field.type')</b><br/>
</td>
<td>
<b>$i18n.getText('issue.field.status')</b><br/>
</td>
<td>
<b>$i18n.getText('issue.field.assignee')</b><br/>
</td>
<td>
<b>$i18n.getText('issue.field.duedate')</b><br/>
</td>
</tr>
#foreach ($subTask in $subTasks)
<tr>
<td>
<a href="$baseurl/browse/$textutils.htmlEncode($encoder.encode($subTask.key))">$textutils.htmlEncode($subTask.key)</a>
</td>
<td valign="top" width="25%">
<a href="$baseurl/browse/$textutils.htmlEncode($encoder.encode($subTask.key))">$textutils.htmlEncode($stringUtils.abbreviate($subTask.summary, 40))</a>
</td>
<td>
$textutils.htmlEncode($subTask.issueTypeObject.nameTranslation, false)
</td>
<td>
$textutils.htmlEncode($subTask.statusObject.nameTranslation, false)
</td>
<td>
#if ($fieldVisibility.isFieldHidden($issue.project.getLong('id'), 'assignee', $issue.issueTypeObject.id) == false)
#if ($subTask.assignee) $textutils.htmlEncode($subTask.assignee.displayName) #end &nbsp;
#end
</td>
<td>
$textutils.htmlEncode($subTask.duedateObject.nameTranslation, false)
</td>
</tr>
#end
</table>
issue.field.duedate renders correctly as Due Date in the header row, but duedate.Object returns a null value or blank.
Any help or pointers to a document would be greatly appreciated!