Class RestJiraDownloader

java.lang.Object
org.apache.maven.plugins.changes.jira.RestJiraDownloader

public class RestJiraDownloader extends Object
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.
  • Field Details

    • versionPrefix

      protected String versionPrefix
      The versionPrefix to apply to the POM version
    • nbEntriesMax

      protected int nbEntriesMax
      The maximum number of entries to show.
    • filter

      protected String filter
      The filter to apply to query to JIRA.
    • fixVersionIds

      protected String fixVersionIds
      Ids of fix versions to show, as comma separated string.
    • statusIds

      protected String statusIds
      Ids of status to show, as comma separated string.
    • resolutionIds

      protected String resolutionIds
      Ids of resolution to show, as comma separated string.
    • priorityIds

      protected String priorityIds
      Ids of priority to show, as comma separated string.
    • component

      protected String component
      The component to show.
    • typeIds

      protected String typeIds
      Ids of types to show, as comma separated string.
    • sortColumnNames

      protected String sortColumnNames
      Column names to sort by, as comma separated string.
    • jiraUser

      protected String jiraUser
      The username to log into JIRA.
    • jiraPassword

      protected String jiraPassword
      The password to log into JIRA.
    • jiraDatePattern

      protected String 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

      protected String 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

      public void setVersionPrefix(String versionPrefix)
    • setJiraDatePattern

      public void setJiraDatePattern(String jiraDatePattern)
    • setNbEntries

      public void setNbEntries(int nbEntries)
      Sets the maximum number of Issues to show.
      Parameters:
      nbEntries - The maximum number of Issues
    • setStatusIds

      public void setStatusIds(String thisStatusIds)
      Sets the statusIds.
      Parameters:
      thisStatusIds - The id(s) of the status to show, as comma separated string
    • setPriorityIds

      public void setPriorityIds(String thisPriorityIds)
      Sets the priorityIds.
      Parameters:
      thisPriorityIds - The id(s) of the priority to show, as comma separated string
    • setResolutionIds

      public void setResolutionIds(String thisResolutionIds)
      Sets the resolutionIds.
      Parameters:
      thisResolutionIds - The id(s) of the resolution to show, as comma separated string
    • setSortColumnNames

      public void setSortColumnNames(String thisSortColumnNames)
      Sets the sort column names.
      Parameters:
      thisSortColumnNames - The column names to sort by
    • setJiraPassword

      public void setJiraPassword(String thisJiraPassword)
      Sets the password to log into a secured JIRA.
      Parameters:
      thisJiraPassword - The password for JIRA
    • setJiraUser

      public void setJiraUser(String thisJiraUser)
      Sets the username to log into a secured JIRA.
      Parameters:
      thisJiraUser - The username for JIRA
    • setJiraServerId

      public void setJiraServerId(String jiraServerId)
    • setFilter

      public void setFilter(String thisFilter)
      Sets the filter to apply to query to JIRA.
      Parameters:
      thisFilter - The filter to query JIRA
    • setComponent

      public void setComponent(String theseComponents)
      Sets the component(s) to apply to query JIRA.
      Parameters:
      theseComponents - The id(s) of components to show, as comma separated string
    • setFixVersionIds

      public void setFixVersionIds(String theseFixVersionIds)
      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

      public void setTypeIds(String theseTypeIds)
      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

      public void doExecute() throws Exception
      Throws:
      Exception
    • getIssueList

      public List<Issue> getIssueList()