com.atlassian.jira.upgrade
Interface UpgradeHistoryItem

All Known Implementing Classes:
UpgradeHistoryItemImpl

public interface UpgradeHistoryItem

Simple representation of an upgrade performed in history.

Since:
v4.1

Method Summary
 String getOriginalBuildNumber()
           
 String getOriginalVersion()
           
 String getTargetBuildNumber()
          For historical data, this number may not represent a released build of JIRA but instead the last upgrade task to run.
 String getTargetVersion()
          If the target build number was not a released build of JIRA, the version picked will be the next version of JIRA after that build number.
 Date getTimePerformed()
          For historical data, we do not have information about when upgrade tasks were performed.
 boolean isInferred()
           
 

Method Detail

getTimePerformed

Date getTimePerformed()
For historical data, we do not have information about when upgrade tasks were performed. In this case, null may be returned.

Returns:
the time when the upgrade was performed; may be null if it is unknown

getTargetBuildNumber

String getTargetBuildNumber()
For historical data, this number may not represent a released build of JIRA but instead the last upgrade task to run. This is because often the release build number does not have an associated upgrade task.

Returns:
the build number that was being upgraded to which represents which version of JIRA the instance was running at the time of upgrade.

getOriginalBuildNumber

String getOriginalBuildNumber()
Returns:
the previous build number of JIRA before this upgrade, or the build number used to infer this history item if it was inferred.

getTargetVersion

String getTargetVersion()

If the target build number was not a released build of JIRA, the version picked will be the next version of JIRA after that build number.

For example, if the target build number is 207, the version returned would be 3.8, as it has a build number of 209.

Returns:
the version of JIRA that corresponds to the target build number.

getOriginalVersion

String getOriginalVersion()
Returns:
the previous version of JIRA before this upgrade.

isInferred

boolean isInferred()
Returns:
true if this was inferred from upgrade tasks; false otherwise


Copyright © 2002-2013 Atlassian. All Rights Reserved.