excel export from jira webwork plugin

573 views Asked by At

I write my own webwork plugin for Jira 3.12, which make a report for version progress of some projects. I can't use standart jira report plugin, because customer want two-step parameters choise (some projects and set of versions for every selected project). He also need excel export of this report. But I don't understand, how to transfer this parameters to ConfigureReport or don't know another way do this.

How can I add excel export to my webwork plugin?

2

There are 2 answers

0
Stanislav Panyushkin On BEST ANSWER

Fixed. I bind javascript on HTML button in velocity temlate:

function generateexcel(tableid)
        {
            var table= document.getElementById(tableid);
            table.border = 1;
            var html = table.outerHTML;
            window.open('data:application/vnd.ms-excel,' + encodeURIComponent(html));
        }

Where tableid is ID of report table in this template.

0
Daria Trainor On

To get some samples on using webwork you may have a look at https://marketplace.atlassian.com/plugins/com.consultingtoolsmiths.jira.samples.webwork