diff --git a/jira/plugin.jelly b/jira/plugin.jelly index 806a0948..3b799dac 100644 --- a/jira/plugin.jelly +++ b/jira/plugin.jelly @@ -64,10 +64,10 @@ project="${pom}" output="${maven.build.dir}/jira/jira-results.xml" nbEntries="${maven.jira.nbentries}" - statusIds="${maven.jira.status}" + status="${maven.jira.status}" filter="${maven.jira.filter}" - resolutionIds="${maven.jira.resolution}" - priorityIds="${maven.jira.priority}" + resolution="${maven.jira.resolution}" + priority="${maven.jira.priority}" webUser="${maven.jira.webUser}" webPassword="${maven.jira.webPassword}" jiraUser="${maven.jira.jiraUser}" diff --git a/jira/src/main/org/apache/maven/jira/JiraDownloader.java b/jira/src/main/org/apache/maven/jira/JiraDownloader.java index 0754bdc3..f732bf4c 100644 --- a/jira/src/main/org/apache/maven/jira/JiraDownloader.java +++ b/jira/src/main/org/apache/maven/jira/JiraDownloader.java @@ -98,13 +98,13 @@ public final class JiraDownloader private String filter; /** Ids of status to show, as comma separated string. */ - private String statusIds; + private String status; /** Ids of resolution to show, as comma separated string. */ - private String resolutionIds; + private String resolution; /** Ids of priority to show, as comma separated string. */ - private String priorityIds; + private String priority; /** The component to show. */ private String component; @@ -147,9 +147,9 @@ public final class JiraDownloader StringBuffer localFilter = new StringBuffer(); // get the Status Ids - if ( statusIds != null ) + if ( status != null ) { - String[] stats = statusIds.split( "," ); + String[] stats = status.split( "," ); for ( int i = 0; i < stats.length; i++ ) { @@ -157,15 +157,15 @@ public final class JiraDownloader if ( statusParam != null ) { - localFilter.append( "&statusIds=" + statusParam ); + localFilter.append( "&status=" + statusParam ); } } } // get the Priority Ids - if ( priorityIds != null ) + if ( priority != null ) { - String[] prios = priorityIds.split( "," ); + String[] prios = priority.split( "," ); for ( int i = 0; i < prios.length; i++ ) { @@ -173,15 +173,15 @@ public final class JiraDownloader if ( priorityParam != null ) { - localFilter.append( "&priorityIds=" + priorityParam ); + localFilter.append( "&priority=" + priorityParam ); } } } - if ( resolutionIds != null ) + if ( resolution != null ) { // get the Resolution Ids - String[] resos = resolutionIds.split( "," ); + String[] resos = resolution.split( "," ); for ( int i = 0; i < resos.length; i++ ) { @@ -189,7 +189,7 @@ public final class JiraDownloader if ( resoParam != null ) { - localFilter.append( "&resolutionIds=" + resoParam ); + localFilter.append( "&resolution=" + resoParam ); } } } @@ -614,36 +614,36 @@ public final class JiraDownloader } /** - * Sets the statusIds. + * Sets the status. * - * @param thisStatusIds + * @param thisStatus * The id(s) of the status to show, as comma separated string */ - public void setStatusIds( final String thisStatusIds ) + public void setStatus( final String thisStatus ) { - statusIds = thisStatusIds; + status = thisStatus; } /** - * Sets the priorityIds. + * Sets the priority. * - * @param thisPriorityIds + * @param thisPriority * The id(s) of the priority to show, as comma separated string */ - public void setPriorityIds( final String thisPriorityIds ) + public void setPriority( final String thisPriority ) { - priorityIds = thisPriorityIds; + priority = thisPriority; } /** - * Sets the resolutionIds. + * Sets the resolution. * - * @param thisResolutionIds + * @param thisResolution * The id(s) of the resolution to show, as comma separated string */ - public void setResolutionIds( final String thisResolutionIds ) + public void setResolution( final String thisResolution ) { - resolutionIds = thisResolutionIds; + resolution = thisResolution; } /** diff --git a/jira/xdocs/changes.xml b/jira/xdocs/changes.xml index 9f17a46e..28d8065d 100644 --- a/jira/xdocs/changes.xml +++ b/jira/xdocs/changes.xml @@ -24,6 +24,7 @@
+ This plugin downloads issues from Jira and creates a report. +
++ Note: From version 1.3 on, this plugin needs + at least JIRA 3.3 to work properly. +
+