Class HistoricalEstimateStatisticValueResolver

java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.statistics.HistoricalEstimateStatisticValueResolver
All Implemented Interfaces:
IssueStatisticValueResolver, StatisticValueResolver

public class HistoricalEstimateStatisticValueResolver extends Object implements IssueStatisticValueResolver
Fetches statistics about issues over the lifetime of the sprint.
  • Constructor Details

  • Method Details

    • getValue

      public Double getValue(com.atlassian.jira.issue.Issue issue)
      Description copied from interface: IssueStatisticValueResolver
      Get the value from the issue for the configured StatisticsField.
      Specified by:
      getValue in interface IssueStatisticValueResolver
      Parameters:
      issue - the value
      Returns:
      the value or null if one could not be resolved
      See Also:
    • getValue

      @Nullable public Double getValue(String issueKey)
      Returns the last estimate value of the specified issue. If the issue is assigned to the sprint before the sprint is started, this should return the last estimate value before the sprint started. If the issue is assigned to the sprint after the sprint started, this should return the estimate value at that time.
      Parameters:
      issueKey - the issue key
      Returns:
      the value of the estimate. May be null.
    • getCurrentEstimation

      @Nullable public Double getCurrentEstimation(String issueKey)
      Return the current estimation value of an issue
      Parameters:
      issueKey - the issue key
      Returns:
      the value of the estimate. May be null.
    • getStatisticsField

      public StatisticsField getStatisticsField()
      Specified by:
      getStatisticsField in interface StatisticValueResolver
      Returns:
      the statistics field relevant to this resolver
    • getText

      public String getText(Double value)
      Description copied from interface: StatisticValueResolver
      Return a text representation of a double value which has been resolved by this resolver.
      Specified by:
      getText in interface StatisticValueResolver
      Parameters:
      value - the double value; may be null
      Returns:
      the string representation; may be null
    • wasIssueMarkedAsDoneDuringSprint

      public boolean wasIssueMarkedAsDoneDuringSprint(String issueKey)
      Check if the issue has completed in current sprint or not
      Parameters:
      issueKey - the issue key
      Returns:
      true if the issue has completed in current sprint, false for otherwise.
    • getIssueSprintStatistics

      public IssueSprintStatistics getIssueSprintStatistics(String issueKey)
      Generates statistics which track the movements of an issue during the lifetime of the sprint.
      Parameters:
      issueKey - the issue key
      Returns:
      the statistics