public interface TrackingStatisticService
StatisticsFieldConfig
and StatisticsField
objects relating to the
Tracking Statistic(s) of a RapidView
.Modifier and Type | Field and Description |
---|---|
static String |
REMAINING_ESTIMATE_FIELD_ID
The JIRA Field ID that represents
TimeEstimateSystemField when used
in a StatisticsFieldConfig . |
Modifier and Type | Method and Description |
---|---|
List<StatisticsField> |
getAvailableTrackingStatistics()
Returns the list of
StatisticsField s which represent the available StatisticsFieldConfig s. |
ServiceOutcome<StatisticsField> |
getInstanceOf(StatisticsFieldConfig config)
Retrieve the StatisticsField configured in the StatisticFieldConfig
|
StatisticsField |
getInvalidTrackingStatistic(RapidView rapidView)
Returns a
StatisticsField instance which represents an invalid StatisticsFieldConfig . |
StatisticsField |
getTrackingStatistic(RapidView rapidView)
Will always return a
StatisticsField , which may or may not be valid. |
ServiceOutcome<StatisticsField> |
getTrackingStatisticStrict(RapidView rapidView)
Attempts to get the
StatisticsField of a rapid view. |
boolean |
isRemainingEstimateStatisticsField(StatisticsField statisticsField)
Is the passed StatisticsField of type remaining estimate?
|
boolean |
isTrackingStatisticFieldAndApplicable(StatisticsField trackingStatistic,
com.atlassian.jira.issue.Issue issue)
Is the
StatisticsField field based and applicable for the given issue? |
boolean |
isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic,
com.atlassian.jira.issue.Issue issue)
Is the
StatisticsField field based but not applicable for the given issue? |
boolean |
isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic,
Long projectId,
String issueTypeId)
Is the
StatisticsField field based but not applicable for the given project and issue type? |
boolean |
isTrackingStatisticValidAndEnabled(StatisticsField trackingStatistic)
Is the
StatisticsField valid and enabled (i.e. should it take part in accumulating statistics over issues)? |
ServiceResult |
updateTrackingStatistic(com.atlassian.jira.user.ApplicationUser user,
RapidView rapidView,
StatisticsFieldConfig trackingStatistic)
Updates the specified rapid view to a new configuration.
|
static final String REMAINING_ESTIMATE_FIELD_ID
TimeEstimateSystemField
when used
in a StatisticsFieldConfig
.@Nonnull List<StatisticsField> getAvailableTrackingStatistics()
StatisticsField
s which represent the available StatisticsFieldConfig
s.@Nonnull ServiceResult updateTrackingStatistic(com.atlassian.jira.user.ApplicationUser user, @Nonnull RapidView rapidView, @Nonnull StatisticsFieldConfig trackingStatistic)
user
- the userrapidView
- the rapid viewtrackingStatistic
- the new configuration@Nonnull ServiceOutcome<StatisticsField> getTrackingStatisticStrict(@Nonnull RapidView rapidView)
StatisticsField
of a rapid view. Outcome will contain errors if the configured
tracking statistic is invalid. You may wish to call getInvalidTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
in that case.
If you just want either the valid or invalid StatisticsField
to be returned, call getTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
.rapidView
- the rapid viewgetInvalidTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
,
getTrackingStatistic(com.atlassian.greenhopper.model.rapid.RapidView)
@Nonnull StatisticsField getTrackingStatistic(@Nonnull RapidView rapidView)
StatisticsField
, which may or may not be valid.rapidView
- the rapid view@Nonnull StatisticsField getInvalidTrackingStatistic(@Nonnull RapidView rapidView)
StatisticsField
instance which represents an invalid StatisticsFieldConfig
. This only
really makes sense to call if you have previously called getTrackingStatisticStrict(com.atlassian.greenhopper.model.rapid.RapidView)
and were returned errors.rapidView
- the rapid view@Nonnull ServiceOutcome<StatisticsField> getInstanceOf(@Nonnull StatisticsFieldConfig config)
config
- for the fieldboolean isTrackingStatisticFieldAndApplicable(StatisticsField trackingStatistic, com.atlassian.jira.issue.Issue issue)
StatisticsField
field based and applicable for the given issue? (Due to Custom Field configuration
contexts, for example.)trackingStatistic
- the tracking statisticissue
- the issueboolean isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic, com.atlassian.jira.issue.Issue issue)
StatisticsField
field based but not applicable for the given issue? (Due to Custom Field configuration
contexts, for example.)trackingStatistic
- the tracking statisticissue
- the issueisTrackingStatisticFieldAndNotApplicable(com.atlassian.greenhopper.model.rapid.StatisticsField, Long, String)
boolean isTrackingStatisticFieldAndNotApplicable(StatisticsField trackingStatistic, Long projectId, String issueTypeId)
StatisticsField
field based but not applicable for the given project and issue type?
(Due to Custom Field configuration contexts, for example.)trackingStatistic
- the tracking statisticprojectId
- the ID of the projectissueTypeId
- the ID of the issue typeisTrackingStatisticFieldAndNotApplicable(StatisticsField, Issue)
boolean isTrackingStatisticValidAndEnabled(StatisticsField trackingStatistic)
StatisticsField
valid and enabled (i.e. should it take part in accumulating statistics over issues)?trackingStatistic
- the tracking statisticStatisticsField.isValid()
,
StatisticsField.isEnabled()
boolean isRemainingEstimateStatisticsField(StatisticsField statisticsField)
Copyright © 2007–2025 Atlassian. All rights reserved.