[英]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. 我为Jira 3.12编写了自己的Webwork插件,该插件报告了一些项目的版本进度。 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).
我不能使用standart jira报告插件,因为客户希望选择两步参数(某些项目以及每个选定项目的版本集)。 He also need excel export of this report.
他还需要Excel导出此报告。 But I don't understand, how to transfer this parameters to ConfigureReport or don't know another way do this.
但是我不明白如何将这些参数传输到ConfigureReport或不知道另一种方式。
How can I add excel export to my webwork plugin? 如何将excel导出添加到我的Webwork插件?
Fixed. 固定。 I bind javascript on HTML button in velocity temlate:
我将JavaScript绑定到速度模板中的HTML按钮上:
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. 其中tableid是此模板中报告表的ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.