Interface TimeTrackingService
- All Known Implementing Classes:
TimeTrackingServiceImpl
public interface TimeTrackingService
Interface which handles some of the common tasks around time tracking.
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.jira.issue.util.AggregateTimeTrackingBean
getAggregates
(com.atlassian.jira.issue.Issue issue, Collection<com.atlassian.jira.issue.Issue> subTasks) Copied fromIssueImplAggregateTimeTrackingCalculator.getAggregates(com.atlassian.jira.issue.Issue)
.updateOriginalEstimate
(com.atlassian.jira.issue.Issue issue, String duration) Updates the original estimate of an issue.updateOriginalEstimate
(com.atlassian.jira.issue.Issue issue, String duration, boolean updateRemainingEstimateIfNotSet) Updates the original estimate of an issue.updateRemainingEstimate
(com.atlassian.jira.issue.Issue issue, String duration) Updates the remaining estimate of an issue.updateRemainingEstimate
(com.atlassian.jira.issue.Issue issue, String duration, boolean updateOriginalEstimateIfNotSet) Updates the remaining estimate of an issue.
-
Method Details
-
updateRemainingEstimate
@Nonnull ServiceResult updateRemainingEstimate(com.atlassian.jira.issue.Issue issue, String duration) Updates the remaining estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update.- Parameters:
issue
- the issue to updateduration
- the duration to set- Returns:
- the outcome; potentially with errors
-
updateRemainingEstimate
@Nonnull ServiceResult updateRemainingEstimate(com.atlassian.jira.issue.Issue issue, String duration, boolean updateOriginalEstimateIfNotSet) Updates the remaining estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update. Optionally, this can also update the original estimate of the issue to be the same duration, if no value has yet been set on it.- Parameters:
issue
- the issue to updateduration
- the duration to setupdateOriginalEstimateIfNotSet
- whether or not to update the original estimate as well if its not set (to emulate JIRA's behaviour)- Returns:
- the outcome; potentially with errors
-
updateOriginalEstimate
@Nonnull ServiceResult updateOriginalEstimate(com.atlassian.jira.issue.Issue issue, String duration) Updates the original estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update.- Parameters:
issue
- the issue to updateduration
- the duration to set- Returns:
- the outcome; potentially with errors
-
updateOriginalEstimate
@Nonnull ServiceResult updateOriginalEstimate(com.atlassian.jira.issue.Issue issue, String duration, boolean updateRemainingEstimateIfNotSet) Updates the original estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update. Optionally, this can also update the remaining estimate of the issue to be the same duration, if no value has yet been set on it.- Parameters:
issue
- the issue to updateduration
- the duration to setupdateRemainingEstimateIfNotSet
- whether or not to update the remaining estimate as well if it is not set (to emulate JIRA's behaviour)- Returns:
- the outcome; potentially with errors
-
getAggregates
com.atlassian.jira.issue.util.AggregateTimeTrackingBean getAggregates(com.atlassian.jira.issue.Issue issue, Collection<com.atlassian.jira.issue.Issue> subTasks) Copied fromIssueImplAggregateTimeTrackingCalculator.getAggregates(com.atlassian.jira.issue.Issue)
. Creates and returns a bean that contains all aggregate time tracking information for given issue(not a sub-task). This information is gathered from all issue's sub-tasks that a user in this context has permission to see.- Parameters:
issue
- issue to calculate aggregates for.- Returns:
- The bean containing all aggregate values.
-