@Service public class StatisticFieldHelper extends Object
RapidIssueEntry.StatisticFieldValue
representation of an estimate statistic StatisticsField
.Constructor and Description |
---|
StatisticFieldHelper() |
Modifier and Type | Method and Description |
---|---|
RapidIssueEntry.StatisticFieldValue |
createCurrentEstimateStatistic(com.atlassian.jira.issue.Issue issue,
HistoricalEstimateStatisticValueResolver issueStatisticValueResolver)
Creates a current estimation of a
RapidIssueEntry.StatisticFieldValue
for the given issue and IssueStatisticValueResolver . |
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(Long projectId,
String issueTypeId,
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(Long projectId,
String issueTypeId,
String documentValue,
DocumentStatisticValueResolver documentStatisticValueResolver)
Creates a representation of a
RapidIssueEntry.StatisticFieldValue
for the given document value and DocumentStatisticValueResolver . |
RapidIssueEntry.StatisticFieldValue |
createTrackingStatistic(StatisticsField estimateStatistic,
Long projectId,
String issueTypeId,
com.atlassian.greenhopper.web.rapid.issue.StatisticFieldHelper.EnclosedValueResolver enclosedValueResolver) |
RapidIssueEntry.StatisticFieldValue |
createTrackingStatisticValue(DocumentStatisticValueResolver documentStatisticValueResolver,
Long projectId,
String issueTypeId,
Double value)
Renders the tracking statistic for an already calculated value, such as aggregated statistic value (e.g. time tracking in plan mode)
|
String |
getEstimateStatisticFieldId(StatisticsField estimateStatistic,
com.atlassian.jira.issue.Issue issue)
Get the field ID of the estimate statistic for the specified issue.
|
String |
getTrackingStatisticFieldId(StatisticsField trackingStatistic,
com.atlassian.jira.issue.Issue issue)
Get the field ID of the tracking statistic for the specified issue.
|
public String getEstimateStatisticFieldId(StatisticsField estimateStatistic, com.atlassian.jira.issue.Issue issue)
FieldEntry
represents the estimate statistic.estimateStatistic
- the estimate statistic for the boardissue
- the issueStatisticsField
is invalid, not enabled or not applicable.public String getTrackingStatisticFieldId(StatisticsField trackingStatistic, com.atlassian.jira.issue.Issue issue)
FieldEntry
represents the tracking statistic.trackingStatistic
- the tracking statistic of the boardissue
- the issueStatisticsField
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 issueStatisticsField
is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()
public RapidIssueEntry.StatisticFieldValue createCurrentEstimateStatistic(com.atlassian.jira.issue.Issue issue, HistoricalEstimateStatisticValueResolver 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 issueStatisticsField
is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()
public RapidIssueEntry.StatisticFieldValue createEstimateStatistic(Long projectId, String issueTypeId, 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 valueStatisticsField
is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()
public RapidIssueEntry.StatisticFieldValue createTrackingStatistic(Long projectId, String issueTypeId, 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 valueStatisticsField
is invalid, not enabled or not applicable.StatisticValueResolver.getStatisticsField()
public RapidIssueEntry.StatisticFieldValue createTrackingStatisticValue(DocumentStatisticValueResolver documentStatisticValueResolver, Long projectId, String issueTypeId, Double value)
public RapidIssueEntry.StatisticFieldValue createTrackingStatistic(StatisticsField estimateStatistic, Long projectId, 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
.Copyright © 2007–2025 Atlassian. All rights reserved.