文件说明-pom.xml
此文件主题的功能为插件的描述信息、依赖的第三方库(Jira版本)
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.supermap.confluence.plugins.statistics</groupId>
<artifactId>statistics</artifactId>
<version>1.0</version>
<organization>
<name> SuperMap Software Co., Ltd</name>
<url>http://www.supermap.com/</url>
</organization>
<name>statistics</name>
<description>This is the org.supermap.confluence.plugins.statistics:statistics plugin for Atlassian JIRA.</description>
<packaging>atlassian-plugin</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>atlassian-jira</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-func-tests</artifactId>
<version>${jira.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>3.4</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.data.version}</productDataVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<jira.version>4.2</jira.version>
<jira.data.version>4.2</jira.data.version>
</properties>
</project>
--------------------------------------------------------------------------------
文件说明-atlassian-plugin.xml
此文件主题的功能为描述插件信息,描述插件执行过程(类名,VM路径、属性文件路径)等
--------------------------------------------------------------------------------
<atlassian-plugin key="${project.groupId}.${project.artifactId}"
name="${project.artifactId}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
</plugin-info>
<!-- An 'Issue unresolution' Report - displays a histogram of issue unresolution rate within
a specifed project or filter over a specified time -->
<report key="issueunresolutionreport" name="Issue unresolution Report"
class="com.supermap.confluence.plugins.statistics.IssueUnresolutionReport">
<description key="report.issueunresolution.description">i18n description</description>
<label key="report.issueunresolution.label" />
<resource type="velocity" name="view"
location="templates/unresolutionreport/issueunresolutionreport.vm" />
<resource type="i18n" name="i18n"
location="com.atlassian.plugins.tutorial.jira.report.issueunresolution_report" />
<properties>
<property>
<key>projectorfilterid</key>
<name>report.issueunresolution.projectorfilterid.name</name>
<description>report.issueunresolution.projectorfilterid.description
</description>
<type>filterprojectpicker</type>
<i18n>false</i18n>
</property>
<property>
<key>mode</key>
<name>report.issueunresolution.mode.name</name>
<description>report.issueunresolution.mode.description
</description>
<type>select</type>
<default>1</default>
<values>
<value>
<key>1</key>
<value>report.issueunresolution.mode.field.rate</value>
</value>
<value>
<key>2</key>
<value>report.issueunresolution.mode.field.show</value>
</value>
</values>
</property>
<property>
<key>startDate</key>
<name>report.issueunresolution.startdate</name>
<description>report.issueunresolution.startdate.description
</description>
<type>date</type>
</property>
<property>
<key>endDate</key>
<name>report.issueunresolution.enddate</name>
<description>report.issueunresolution.enddate.description</description>
<type>date</type>
</property>
<property>
<key>interval</key>
<name>report.issueunresolution.interval</name>
<description>report.issueunresolution.interval.description</description>
<type>long</type>
<default>1</default>
</property>
</properties>
</report>
</atlassian-plugin>
--------------------------------------------------------------------------------
文件说明-issueunresolutionreport.vm
此文件功能为界面显示,通过在Java代码中通过map类将各属性值传递到VM文件,进行绘图
--------------------------------------------------------------------------------
<div style="padding: 5px">
<!-- Display the report configuration -->
<h4>
$i18n.getText('report.issueunresolution.projectorfilterid.name'): $projectName1 |
$i18n.getText('report.issueunresolution.duration'): $outlookDate.formatDMY($startDate) - $outlookDate.formatDMY($endDate) |
$i18n.getText('report.issueunresolution.interval'): $interval $i18n.getText('report.issueunresolution.interval.days') |
sum:$count
</h4>
<br />
<table style="width: 100%; border: 0; background-color: lightgrey">
<!-- Have one row for the issue count -->
<tr style="background-color: #eee; padding: 1px">
#foreach ($date in $dates)
<td align="center"><b>$outlookDate.formatDMY($date)</b></td>
#end
</tr>
<tr style="background-color: #eee; padding: 1px">
#foreach ($count in $unresolutionissuecounts)
<td align="center"><b>$count</b></td>
#end
</tr>
<tr style="background-color: #eee; padding: 1px">
#foreach ($count in $allissuecounts)
<td align="center"><b>$count</b></td>
#end
</tr>
</table>
<table style="width: 100%; border: 0; background-color: WHITE">
<tr bgcolor="#FFFFFF">
<td width="100%" align="center">
#if ($chart)
#if ($imagemap)
$imagemap
#end
<center>
<img src='${req.contextPath}/charts?filename=$chart' border='0' #if ($imagemap) usemap="\#$imagemapName" #end width="$imageWidth" height="$imageHeight" /><br />
</center>
#else
$i18n.getText("report.issuecreation.nochart")
#end
</td>
</tr>
</table>
</div>
--------------------------------------------------------------------------------
文件说明-issueunresolution_report.properties
此文件功能为保存属性字符串,便于之后的修改及国际化等
--------------------------------------------------------------------------------
report.issueunresolution.label = SuperMap Issue Unresolution Report
report.issueunresolution.description = Report displaying a histogram of issues unresolutiond over a specified period.
report.issueunresolution.name = Issue Unresolution Report
report.issue
- 1
- 2
- 3
- 4
前往页