Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top