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 Summary
ConstructorsConstructorDescriptionHistoricalEstimateStatisticValueResolver
(StatisticsField estimationStatistic, Sprint sprint, Map<String, List<BurndownChange>> historyData, Collection<String> mappedStatusIds) -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentEstimation
(String issueKey) Return the current estimation value of an issuegetIssueSprintStatistics
(String issueKey) Generates statistics which track the movements of an issue during the lifetime of the sprint.Return a text representation of a double value which has been resolved by this resolver.getValue
(com.atlassian.jira.issue.Issue issue) Get the value from the issue for the configuredStatisticsField
.Returns the last estimate value of the specified issue.boolean
wasIssueMarkedAsDoneDuringSprint
(String issueKey) Check if the issue has completed in current sprint or not
-
Constructor Details
-
HistoricalEstimateStatisticValueResolver
public HistoricalEstimateStatisticValueResolver(StatisticsField estimationStatistic, Sprint sprint, Map<String, List<BurndownChange>> historyData, Collection<String> mappedStatusIds)
-
-
Method Details
-
getValue
Description copied from interface:IssueStatisticValueResolver
Get the value from the issue for the configuredStatisticsField
.- Specified by:
getValue
in interfaceIssueStatisticValueResolver
- Parameters:
issue
- the value- Returns:
- the value or null if one could not be resolved
- See Also:
-
getValue
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
Return the current estimation value of an issue- Parameters:
issueKey
- the issue key- Returns:
- the value of the estimate. May be null.
-
getStatisticsField
- Specified by:
getStatisticsField
in interfaceStatisticValueResolver
- Returns:
- the statistics field relevant to this resolver
-
getText
Description copied from interface:StatisticValueResolver
Return a text representation of a double value which has been resolved by this resolver.- Specified by:
getText
in interfaceStatisticValueResolver
- Parameters:
value
- the double value; may be null- Returns:
- the string representation; may be null
-
wasIssueMarkedAsDoneDuringSprint
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
Generates statistics which track the movements of an issue during the lifetime of the sprint.- Parameters:
issueKey
- the issue key- Returns:
- the statistics
-