|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.web.rapid.issue.EstimateStatisticHelper
@Service public class EstimateStatisticHelper
Helper methods for creating RapidIssueEntry.StatisticFieldValue
representation of an estimate statistic StatisticsField.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
|---|
logger |
| Constructor Summary | |
|---|---|
EstimateStatisticHelper()
|
|
| Method Summary | |
|---|---|
RapidIssueEntry.StatisticFieldValue |
createEstimateStatistic(com.atlassian.jira.issue.Issue issue,
IssueStatisticValueResolver issueStatisticValueResolver)
Creates a representation of a RapidIssueEntry.StatisticFieldValue
for the given issue and IssueStatisticValueResolver. |
RapidIssueEntry.StatisticFieldValue |
createEstimateStatistic(java.lang.Long projectId,
java.lang.String issueTypeId,
java.lang.String documentValue,
DocumentStatisticValueResolver documentStatisticValueResolver)
Creates a representation of a RapidIssueEntry.StatisticFieldValue
for the given document value and DocumentStatisticValueResolver. |
RapidIssueEntry.StatisticFieldValue |
createIssueCountEstimateStatistic()
Shortcut for creating a RapidIssueEntry.StatisticFieldValue when
we know the configured StatisticsField is of type StatisticsFieldConfig.Type#ISSUE_COUNT. |
java.lang.String |
getEstimateStatisticFieldId(StatisticsField estimateStatistic,
com.atlassian.jira.issue.Issue issue)
Get the field ID of the estimate statistic for the specified issue. |
java.lang.String |
getTrackingStatisticFieldId(StatisticsField trackingStatistic,
com.atlassian.jira.issue.Issue issue)
Get the field ID of the tracking statistic for the specified issue. |
| Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
|---|
logDebug, logError, logException, logInfo, logTrace, logWarn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EstimateStatisticHelper()
| Method Detail |
|---|
public java.lang.String getEstimateStatisticFieldId(StatisticsField estimateStatistic,
com.atlassian.jira.issue.Issue issue)
FieldEntry
represents the estimate statistic.
estimateStatistic - the estimate statistic for the boardissue - the issue
StatisticsField is invalid, not enabled or not applicable.
public java.lang.String getTrackingStatisticFieldId(StatisticsField trackingStatistic,
com.atlassian.jira.issue.Issue issue)
FieldEntry
represents the tracking statistic.
trackingStatistic - the tracking statistic of the boardissue - the issue
StatisticsField is invalid, not enabled or not applicable.
public RapidIssueEntry.StatisticFieldValue createEstimateStatistic(com.atlassian.jira.issue.Issue issue,
IssueStatisticValueResolver issueStatisticValueResolver)
RapidIssueEntry.StatisticFieldValue
for the given issue and IssueStatisticValueResolver.
issue - the issueissueStatisticValueResolver - the resolver for retrieving the value of the StatisticsField of interest
from the issue
StatisticsField is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()
public RapidIssueEntry.StatisticFieldValue createEstimateStatistic(java.lang.Long projectId,
java.lang.String issueTypeId,
java.lang.String documentValue,
DocumentStatisticValueResolver documentStatisticValueResolver)
RapidIssueEntry.StatisticFieldValue
for the given document value and DocumentStatisticValueResolver.
projectId - the ID of the project that the document belongs toissueTypeId - the ID of the issue type of the documentdocumentValue - the value that we are expecting to resolve to a statistic value from the documentdocumentStatisticValueResolver - the resolver for retrieving the value of the StatisticsField of interest
from the document value
StatisticsField is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()public RapidIssueEntry.StatisticFieldValue createIssueCountEstimateStatistic()
RapidIssueEntry.StatisticFieldValue when
we know the configured StatisticsField is of type StatisticsFieldConfig.Type#ISSUE_COUNT.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||