Class RestJiraDownloader
java.lang.Object
org.apache.maven.plugins.changes.jira.RestJiraDownloader
Use the JIRA REST API to download issues. This class assumes that the URL points to a copy of JIRA that
implements the REST API.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The component to show.protected int
protected String
The filter to apply to query to JIRA.protected String
Ids of fix versions to show, as comma separated string.protected String
The pattern used to parse dates from the JIRA xml file.protected String
The password to log into JIRA.protected String
The username to log into JIRA.protected int
The maximum number of entries to show.protected String
Ids of priority to show, as comma separated string.protected int
protected String
Ids of resolution to show, as comma separated string.protected String
Column names to sort by, as comma separated string.protected String
Ids of status to show, as comma separated string.protected String
Ids of types to show, as comma separated string.protected String
The versionPrefix to apply to the POM version -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
Override this method if you need to get issues for a specific Fix For.protected org.apache.maven.plugin.logging.Log
getLog()
void
setComponent
(String theseComponents) Sets the component(s) to apply to query JIRA.void
setConnectionTimeout
(int connectionTimeout) void
Sets the filter to apply to query to JIRA.void
setFixVersionIds
(String theseFixVersionIds) Sets the fix version id(s) to apply to query JIRA.void
setJiraDatePattern
(String jiraDatePattern) void
setJiraPassword
(String thisJiraPassword) Sets the password to log into a secured JIRA.void
setJiraServerId
(String jiraServerId) void
setJiraUser
(String thisJiraUser) Sets the username to log into a secured JIRA.void
setLog
(org.apache.maven.plugin.logging.Log log) void
setMavenProject
(org.apache.maven.project.MavenProject thisProject) Sets the project.void
setNbEntries
(int nbEntries) Sets the maximum number of Issues to show.void
setOnlyCurrentVersion
(boolean onlyCurrentVersion) void
setPriorityIds
(String thisPriorityIds) Sets the priorityIds.void
setReceiveTimout
(int receiveTimout) void
setResolutionIds
(String thisResolutionIds) Sets the resolutionIds.void
setSettings
(org.apache.maven.settings.Settings settings) void
setSettingsDecrypter
(org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) void
setSortColumnNames
(String thisSortColumnNames) Sets the sort column names.void
setStatusIds
(String thisStatusIds) Sets the statusIds.void
setTypeIds
(String theseTypeIds) Sets the typeIds.void
setVersionPrefix
(String versionPrefix)
-
Field Details
-
versionPrefix
The versionPrefix to apply to the POM version -
nbEntriesMax
protected int nbEntriesMaxThe maximum number of entries to show. -
filter
The filter to apply to query to JIRA. -
fixVersionIds
Ids of fix versions to show, as comma separated string. -
statusIds
Ids of status to show, as comma separated string. -
resolutionIds
Ids of resolution to show, as comma separated string. -
priorityIds
Ids of priority to show, as comma separated string. -
component
The component to show. -
typeIds
Ids of types to show, as comma separated string. -
sortColumnNames
Column names to sort by, as comma separated string. -
jiraUser
The username to log into JIRA. -
jiraPassword
The password to log into JIRA. -
jiraDatePattern
The pattern used to parse dates from the JIRA xml file. -
connectionTimeout
protected int connectionTimeout -
receiveTimout
protected int receiveTimout
-
-
Constructor Details
-
RestJiraDownloader
public RestJiraDownloader()
-
-
Method Details
-
getFixFor
Override this method if you need to get issues for a specific Fix For.- Returns:
- a Fix For id or
null
if you don't have that need
-
setMavenProject
public void setMavenProject(org.apache.maven.project.MavenProject thisProject) Sets the project.- Parameters:
thisProject
- The project to set
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log) -
getLog
protected org.apache.maven.plugin.logging.Log getLog() -
setSettings
public void setSettings(org.apache.maven.settings.Settings settings) -
setSettingsDecrypter
public void setSettingsDecrypter(org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) -
setOnlyCurrentVersion
public void setOnlyCurrentVersion(boolean onlyCurrentVersion) -
setVersionPrefix
-
setJiraDatePattern
-
setNbEntries
public void setNbEntries(int nbEntries) Sets the maximum number of Issues to show.- Parameters:
nbEntries
- The maximum number of Issues
-
setStatusIds
Sets the statusIds.- Parameters:
thisStatusIds
- The id(s) of the status to show, as comma separated string
-
setPriorityIds
Sets the priorityIds.- Parameters:
thisPriorityIds
- The id(s) of the priority to show, as comma separated string
-
setResolutionIds
Sets the resolutionIds.- Parameters:
thisResolutionIds
- The id(s) of the resolution to show, as comma separated string
-
setSortColumnNames
Sets the sort column names.- Parameters:
thisSortColumnNames
- The column names to sort by
-
setJiraPassword
Sets the password to log into a secured JIRA.- Parameters:
thisJiraPassword
- The password for JIRA
-
setJiraUser
Sets the username to log into a secured JIRA.- Parameters:
thisJiraUser
- The username for JIRA
-
setJiraServerId
-
setFilter
Sets the filter to apply to query to JIRA.- Parameters:
thisFilter
- The filter to query JIRA
-
setComponent
Sets the component(s) to apply to query JIRA.- Parameters:
theseComponents
- The id(s) of components to show, as comma separated string
-
setFixVersionIds
Sets the fix version id(s) to apply to query JIRA.- Parameters:
theseFixVersionIds
- The id(s) of fix versions to show, as comma separated string
-
setTypeIds
Sets the typeIds.- Parameters:
theseTypeIds
- The id(s) of the types to show, as comma separated string
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) -
setReceiveTimout
public void setReceiveTimout(int receiveTimout) -
doExecute
- Throws:
Exception
-
getIssueList
-