Export reporter and assignee

When I use the issue-vo template, reporter and assignee fields in the pdf export are blank.

Other fields (for instance issue type and priority) are filled in correctly:

<fo:table-row>
<fo:table-cell padding="4px">
<fo:block font-weight="bold">$i18n.getText("issue.field.type"):</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block>#if($issue.issueTypeObject) $xmlutils.escape($issue.issueTypeObject.name) #else None #end</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block font-weight="bold">$i18n.getText("issue.field.priority"):</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block>#if($issue.priorityObject) $xmlutils.escape($issue.priorityObject.name) #else None #end</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding="4px">
<fo:block font-weight="bold">$i18n.getText("issue.field.reporter"):</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block>#if($issue.reporter) $xmlutils.escape($issue.reporter.fullName) #else Unassigned #end</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block font-weight="bold">$i18n.getText("issue.field.assignee"):</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px">
<fo:block>#if($issue.assignee) $xmlutils.escape($issue.assignee.fullName) #else Unassigned #end</fo:block>
</fo:table-cell>
</fo:table-row>

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    Wouter Franssens

    I noticed that if I use "name" instead of "fullName", the export returns the username from JIRA for that reporter/assignee.

    --> So I'm guessing I should use something other than "fullName" if I want to get the Full Name from JIRA in my pdf export?

     

    Thanks,

     

    Wouter

  • 0
    Avatar
    Wouter Franssens

    Found it: I should use "DisplayName" instead of "fullName"

  • 0
    Avatar
    Aron Gombas

    That's exactly the right solution! I'm sorry we overlooked your question in the public forum.

Please sign in to leave a comment.