Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi all,
I'd like to know if it is possible to export a HTML formatted nFeed table directly to PDF (using JIRA PDF View Plugin).
The nFeed custom field is retrieved through a SQL query from a local DB and it is set with the following template:
<table>
<thead>
<tr>
<th>Product ID</th>
<th>Quantity</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>{Product ID}</td>
<td>{Quantity}</td>
<td>{Description}</td>
</tr>
</tbody>
</table>
However in the "All fields" PDF export of the plugin I get only the first column of values:
<content>
<value>product_1023</value>
<value>product_1041</value>
</content>
On the contrary, if I copy-paste the nFeed custom field from the Jira edit view to a wiki-style-redndered field, e.g. "Description", the PDF export shows correctly the table, as it is shown in the Description field (the copy-paste action is rendered as a table).
So I've tried to copy the nFeed custom field with a jira post-function, but the output is the whole html code above, and not the table.
Any suggestions?
Hello @Alessandro Tondo,
The Jira PDF View plugin seems to take the value that the nFeed field stores in the database. The HTML template is only used when displaying the issue in the Internet Browser.
Maybe the following workaround would help you:
- Set an auxiliary nFeed field and copy its configuration from the field you want to display on the PDF export
- Set an auxiliary Jira custom text field
- Change only the display template and set:
|*Product ID*|*Quantity*|*Description*|
|{Product ID}|{Quantity}|{Description}|
This is the equivalent of your HTML table
- Copy the nFeed field display value from the previously set nFeed field to the auxiliary Jira text field with the help of the nFeed post-function.
- See if the value is correctly rendered in the PDF export
This workaround is obviously not satisfactory as it requires a complex configuration. It would be better if the PDF export plugin would be able to get the nFeed fields.
I would recommend to open a support request on our support platform (https://valiantys.atlassian.net) and on the Midori support platform (https://midori.zendesk.com/hc/en-us/requests/new) in order to improve the compatibility between the two apps.
Regards
Nicolas
Thank you very much Nicolas, it works!
And I can even use the same nFeed custom field, since I don't really need to visualize that field in the issue view (it's important only in the exported pdf).
I'll open the support requests as suggested.
UPDATE:
It was a Midori JIRA PDF View Plugin misconfiguration: after manual installing the last templates and scripts it works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.