How to export JIRA report to multiple worksheets of excel?

I am using JIRA report plugin to create a custom report where I want to export the report to excel file with multiple worksheets. I am able to export with single worksheet but can't export to multiple worksheets.

Here's my code for exporting to excel file:

public String generateReportExcel(ProjectActionSupport action, Map params) throws Exception 
        this.validate(action, params);
        final StringBuilder contentDispositionValue = new StringBuilder();
        ActionContext.getResponse().addHeader("content-disposition", contentDispositionValue.toString());
        return descriptor.getHtml("excel", getVelocityParams(action, params));

And my .vm fle for the report looks like this:

<table id="myTable" border="1" cellpadding="3"
cellspacing="1" width="100%">
	<tr class ="rowNormal">
	<tr class ="rowNormal">

I want to create a excel report with two worksheets where the $project variable is in one worksheet and the $version is in another. Does anyone have any idea?

Thanks in advance!


1 answer

Use the Better Excel Plugin and you can create Excel templates that contain any number of worksheets, and fill those with data. See this example with three worksheets, pivot table, pivot chart and real tabular data:


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

440 views 8 26
Read article

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