Index: src/main/org/apache/maven/jira/JiraDownloader.java
===================================================================
--- src/main/org/apache/maven/jira/JiraDownloader.java (revision 165374)
+++ src/main/org/apache/maven/jira/JiraDownloader.java (working copy)
@@ -49,6 +49,12 @@
/** Number of entries max */
private int nbEntriesMax;
+ /**
+ * The JIRA component to report on. This is an {@link Integer} and not an int because
+ * it might be null.
+ */
+ private Integer componentId;
+
private Project project;
/**
@@ -87,6 +93,15 @@
nbEntriesMax = nbEntries;
}
+ /**
+ * Sets the ID of the JIRA component to report on. If null,
+ * issues from all project components are reported.
+ * @param pComponentId the JIRA component id
+ */
+ public void setComponentId(Integer pComponentId) {
+ componentId = pComponentId;
+ }
+
public void doExecute() throws Exception
{
MavenJellyContext ctx;
@@ -113,6 +128,12 @@
String id = url.substring(pos+4);
url = url.substring(0, url.lastIndexOf("/"));
link = url + "/secure/IssueNavigator.jspa?view=rss&pid=" + id + "&sorter/field=issuekey&sorter/order=DESC&sorter/field=status&sorter/order=DESC&tempMax=" + String.valueOf(nbEntriesMax) + "&reset=true&decorator=none";
+
+ //
+ //if a specific component is wanted - specify it in the url
+ //
+ if(componentId != null)
+ link = link + "&component=" + componentId.intValue();
}
}
Index: plugin.properties
===================================================================
--- plugin.properties (revision 165374)
+++ plugin.properties (working copy)
@@ -18,3 +18,10 @@
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
maven.jira.nbentries=1000
+
+#
+# If you want to retrieve issues for a specific JIRA component, set
+# this property to the component's ID (you can find out the component
+# id in JIRA).
+#
+#maven.jira.componentId=
\ No newline at end of file
Index: plugin.jelly
===================================================================
--- plugin.jelly (revision 165374)
+++ plugin.jelly (working copy)
@@ -54,6 +54,7 @@
project="${pom}"
output="${maven.build.dir}/jira/jira-results.xml"
nbEntries="${maven.jira.nbentries}"
+ componentId="${maven.jira.componentId}"
/>