JIRA PDF View Plugin not pulling the subtask information


I am evaluating the JIRA PDF View Plugin and I am trying to pull all the information (customfield values, links, change history, attachment) from the subtasks in parent issue's PDF view. I am using JIRA 4.0.1 for evaluating this plugin.

Is there any way to pull the subtask information in the PDF?

2 answers

1 accepted

Hi Naren!

Any issue can return its subtasks using the following getter:

Collection<Issue>  getSubTaskObjects()

Using that, the iteration in Velocity looks something like this:

# assume that you have the parent issue available in $issue
#foreach($subTask in $issue.subTaskObjects)

Thanks Ferenc. I am looking into it. But I am experiencing some errors while embedding attachments for issues by setting #set($embedAttachments = false).

Also I wanted to fetch the table grid data from cusomfield of type Table Grid Editor in the PDF format.

I am not able to embed the attachments or see the table grid view data in the PDF format due to following error. Can you please shed some information on this error.

java.lang.IllegalStateException: An error occurred whilst rendering this message. Please contact the administrators, and

inform them of this bug.



org.apache.velocity.exception.ParseErrorException: Encountered "'environment', " at getEncodedBodyFromContent[line

250, column 180]

Was expecting one of:

"[" ...

"{" ...


"true" ...

"false" ...




"{" ...

at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1203)

at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1165)

at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:219)

at com.atlassian.velocity.JiraVelocityManager.getEncodedBodyForContent(JiraVelocityManager.java:81)

at com.midori.jira.plugin.pdfview.renderer.IssuePdfRendererImpl.renderVmToFo(IssuePdfRendererImpl.java:215)

at com.midori.jira.plugin.pdfview.renderer.IssuePdfRendererImpl.render(IssuePdfRendererImpl.java:130)

at com.midori.jira.plugin.pdfview.view.PdfIssueView.getContent(PdfIssueView.java:66)

at com.atlassian.jira.plugin.issueview.DefaultIssueViewURLHandler.handleRequest(DefaultIssueViewURLHandler.java:181)

at com.atlassian.jira.web.servlet.IssueViewServlet.doGet(IssueViewServlet.java:23)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


Please open a ticket in our support tracker available at https://midori.zendesk.com/and attach your template. (If you are using the default template, then you don't have to attach that, just tell us if that's the case.)

Hi, you also try to use free add-on: https://bitbucket.org/amarkelov/andreymarkelov-atlas-plugins-templator/wiki/Home

and use

#foreach($subTask in $issue.getSubTaskObjects())

I'll have a look at it, Andrey!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 3 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

15 views 0 3
Join discussion

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