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.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

nFeed table to PDF

Alessandro Tondo
Contributor
February 19, 2018

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?

1 answer

1 accepted

2 votes
Answer accepted
Nicolas Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2018

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

Alessandro Tondo
Contributor
February 20, 2018

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.

Suggest an answer

Log in or Sign up to answer