Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 88 lines (88 sloc) 2.813 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Maven plugins - report on fixed issues</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
<!--
body {
font-family: Arial, Helvetica, sans-serif;
}
th {
color: #FFFFFF;
background-color: #333333;
padding: 5px;
}
td {
background-color: #CCCCCC;
padding: 3px;
}
table {
}
a:link {
color: #003333;
text-decoration: none;
}
a:visited {
color: #003333;
text-decoration: none;
}
a:hover {
color: #0033CC;
}
a:active {
color: #0033CC;
}
-->
</style>
  </head>
  <body>
#set( $jira = $xmlrpc.connect("swizzletester:swizzle","http://jira.codehaus.org/rpc/xmlrpc") )
#set( $projects = $jira.getProjects().matches("name", "Maven 2.*Plugin") )
    #foreach( $project in $projects )
      #set( $url = "http://jira.codehaus.org/secure/IssueNavigator.jspa?view=rss&pid=${project.id}&fixfor=-2&status=5&status=6&sorter/field=issuekey&sorter/order=DESC&tempMax=300&reset=true&decorator=none&type=-2" )
      #set( $jirarss = $rss.fetch( $url ) )
      #set( $project.attributes.totalVotes = $jirarss.issues.sum("votes") )
      ## keep the issues in case you want them later
      #set( $project.attributes.issues = $jirarss.issues )
    #end
<h1>Report on fixed issues for unreleased Maven plugins</h1>
<p>Last Published : $date.format("EEE MMM dd HH:mm:ss z yyyy")</p>
    <table>
      <tr>
<th>Plugin</th>
<th>Number of fixed issues for non released versions</th>
<th>Number of votes on fixed issues</th>
</tr>
#foreach( $project in $projects.descending("@totalVotes") )
<tr>
<td><a href="#$project.name">$project.name</a></td>
<td>$project.attributes.issues.size()</td>
<td>$project.attributes.totalVotes</td>
</tr>
#end
    </table>
    #foreach( $project in $projects.descending("@totalVotes") )
    <a name="$project.name"/><h1><a href="http://jira.codehaus.org/browse/$project.key">$project.name</a></h1>
    <p>$project.attributes.totalVotes votes for $project.attributes.issues.size() fixed issues</p>
    <table>
      <tr>
<th>&nbsp;</th>
<th>Key</th>
<th>Summary</th>
<th>Votes</th>
<th>Fixed in</th>
</tr>
#foreach( $issue in $project.attributes.issues.descending("votes") )
   <tr>
<td><img src="$jira.getIssueType($issue.type.id).icon" alt="$issue.type.name"/></td>
<td><a href="http://jira.codehaus.org/browse/$issue.key">$issue.key</a></td>
<td>$issue.summary</td>
<td>$issue.votes</td>
<td>$issue.fixVersions</td>
</tr>
#end
    </table>
#end
  </body>
</html>
Something went wrong with that request. Please try again.