Hi everyone
I was wondering if anyone is aware how JIRA sorts the custom fields on the "Field Tab" under Screens -> Configure screen. We are evaluating the "Better pdf exporter" extension. It allows us to export issues to PDF. However, the sort order of the fields is alphabetical and doesn't match the layout we have on our screen configuration.
They are calling this function in the velocity template, which then they loop through and display the field name & value. What I would like is apply the default sort order on the issue.
#set($customFields = $customFieldManager.getCustomFieldObjects($issue))
<fo:table-row>
<fo:table-cell padding="4px" number-columns-spanned="2">
<fo:block font-weight="bold">$xmlutils.escape(${customField.name}):</fo:block>
</fo:table-cell>
<fo:table-cell padding="4px" number-columns-spanned="8">
<fo:block>#cfValue($customField)</fo:block>
</fo:table-cell>
</fo:table-row>
#end
thanks!