Take epic theme fields to word document.

I want to take the Epic/Theme fiel to the word document like subtask. So i edit the codings of subtask bt that is not working. The codings are:

#if ($layoutItem.orderableField.name=="Epic/Theme")

<table>

#set ($epictheme = $issue.EpicObjects)

#if ($epic.empty == false)

<tr><td bgcolor="#f0f0f0" width="20%" valign="top"><b>$i18n.getText('issue.field.epictheme'):</b></td>

<td bgcolor="#ffffff" valign="top">

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

</tr>

#foreach ($epictheme in $Epictheme)

<tr>

<td>

<a href="$baseurl/browse/$textutils.htmlEncode($encoder.encode($epictheme.key))">$textutils.htmlEncode($epictheme.key)</a>

</td>

<td valign="top" width="25%">

<a href="$baseurl/browse/$textutils.htmlEncode($encoder.encode($epictheme.key))">$textutils.htmlEncode($stringUtils.abbreviate($epictheme.summary, 40))</a>

</td>

<td>

$textutils.htmlEncode($epictheme.issueTypeObject.nameTranslation, false)

</td>

<td>

$textutils.htmlEncode($epictheme.statusObject.nameTranslation, false)

</td>

<td>

#if ($fieldVisibility.isFieldHidden($issue.project.getLong('id'), 'assignee', $issue.issueTypeObject.id) == false)

#if ($epictheme.assignee) $textutils.htmlEncode($epictheme.assignee.fullName) #end &nbsp;

#end

</td>

</tr>

#end

</table>

</td>

</tr>

#end

</table>

#end

#end

#end

#end

Can anybody recorrect this codings?

1 answer

Hi azfa,

I'm not sure what is going wrong with your template, but an easier way might be to try Intelligent Reports. It will let you format the output you want in Microsoft Word itself, and fill in the details including issue links and custom fields without any programming required. You can thus also avoid changing the code of JIRA itself.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 13 hours ago in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

29 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you