excelreportjirawebwork

excel export from jira webwork plugin


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?


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.