com.atlassian.greenhopper.web.rapid.issue.statistics
Class HistoricalEstimateStatisticValueResolver

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

public class HistoricalEstimateStatisticValueResolver
extends java.lang.Object
implements IssueStatisticValueResolver

Fetches statistics about issues over the lifetime of the sprint.


Constructor Summary
HistoricalEstimateStatisticValueResolver(StatisticsField estimationStatistic, Sprint sprint, java.util.Map<java.lang.String,java.util.List<BurndownChange>> historyData, java.util.Collection<java.lang.String> mappedStatusIds)
           
 
Method Summary
 IssueSprintStatistics getIssueSprintStatistics(java.lang.String issueKey)
          Generates statistics which track the movements of an issue during the lifetime of the sprint.
 StatisticsField getStatisticsField()
           
 java.lang.String getText(java.lang.Double value)
          Return a text representation of a double value which has been resolved by this resolver.
 java.lang.Double getValue(com.atlassian.jira.issue.Issue issue)
          Get the value from the issue for the configured StatisticsField.
 java.lang.Double getValue(java.lang.String issueKey)
          Returns the last estimate value of the specified issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoricalEstimateStatisticValueResolver

public HistoricalEstimateStatisticValueResolver(StatisticsField estimationStatistic,
                                                Sprint sprint,
                                                java.util.Map<java.lang.String,java.util.List<BurndownChange>> historyData,
                                                java.util.Collection<java.lang.String> mappedStatusIds)
Method Detail

getValue

public java.lang.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:
StatisticValueResolver.getStatisticsField()

getValue

@Nullable
public java.lang.Double getValue(java.lang.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.

getStatisticsField

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

getText

public java.lang.String getText(java.lang.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

getIssueSprintStatistics

public IssueSprintStatistics getIssueSprintStatistics(java.lang.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


Copyright © 2007-2014 Atlassian. All Rights Reserved.