|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.web.rapid.issue.StatisticFieldHelper
@Service public class StatisticFieldHelper
Helper methods for creating RapidIssueEntry.StatisticFieldValue
representation of an estimate statistic StatisticsField
.
Constructor Summary | |
---|---|
StatisticFieldHelper()
|
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 . |
RapidIssueEntry.StatisticFieldValue |
createTrackingStatistic(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 |
createTrackingStatistic(StatisticsField estimateStatistic,
java.lang.Long projectId,
java.lang.String issueTypeId,
com.atlassian.greenhopper.web.rapid.issue.StatisticFieldHelper.EnclosedValueResolver enclosedValueResolver)
|
RapidIssueEntry.StatisticFieldValue |
createTrackingStatisticValue(DocumentStatisticValueResolver documentStatisticValueResolver,
java.lang.Long projectId,
java.lang.String issueTypeId,
java.lang.Double value)
Renders the tracking statistic for an already calculated value, such as aggregated statistic value (e.g. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticFieldHelper()
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 createTrackingStatistic(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 createTrackingStatisticValue(DocumentStatisticValueResolver documentStatisticValueResolver, java.lang.Long projectId, java.lang.String issueTypeId, java.lang.Double value)
public RapidIssueEntry.StatisticFieldValue createTrackingStatistic(StatisticsField estimateStatistic, java.lang.Long projectId, java.lang.String issueTypeId, com.atlassian.greenhopper.web.rapid.issue.StatisticFieldHelper.EnclosedValueResolver enclosedValueResolver)
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 |