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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe component to show.protected intprotected StringThe filter to apply to query to JIRA.protected StringIds of fix versions to show, as comma separated string.protected StringThe pattern used to parse dates from the JIRA xml file.protected StringThe password to log into JIRA.protected StringThe username to log into JIRA.protected intThe maximum number of entries to show.protected StringIds of priority to show, as comma separated string.protected intprotected StringIds of resolution to show, as comma separated string.protected StringColumn names to sort by, as comma separated string.protected StringIds of status to show, as comma separated string.protected StringIds of types to show, as comma separated string.protected StringThe versionPrefix to apply to the POM version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected StringOverride this method if you need to get issues for a specific Fix For.protected org.apache.maven.plugin.logging.LoggetLog()voidsetComponent(String theseComponents) Sets the component(s) to apply to query JIRA.voidsetConnectionTimeout(int connectionTimeout) voidSets the filter to apply to query to JIRA.voidsetFixVersionIds(String theseFixVersionIds) Sets the fix version id(s) to apply to query JIRA.voidsetJiraDatePattern(String jiraDatePattern) voidsetJiraPassword(String thisJiraPassword) Sets the password to log into a secured JIRA.voidsetJiraServerId(String jiraServerId) voidsetJiraUser(String thisJiraUser) Sets the username to log into a secured JIRA.voidsetLog(org.apache.maven.plugin.logging.Log log) voidsetMavenProject(org.apache.maven.project.MavenProject thisProject) Sets the project.voidsetNbEntries(int nbEntries) Sets the maximum number of Issues to show.voidsetOnlyCurrentVersion(boolean onlyCurrentVersion) voidsetPriorityIds(String thisPriorityIds) Sets the priorityIds.voidsetReceiveTimout(int receiveTimout) voidsetResolutionIds(String thisResolutionIds) Sets the resolutionIds.voidsetSettings(org.apache.maven.settings.Settings settings) voidsetSettingsDecrypter(org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) voidsetSortColumnNames(String thisSortColumnNames) Sets the sort column names.voidsetStatusIds(String thisStatusIds) Sets the statusIds.voidsetTypeIds(String theseTypeIds) Sets the typeIds.voidsetVersionPrefix(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
nullif 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
-