Class TimeTrackingServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.timetracking.TimeTrackingServiceImpl
- All Implemented Interfaces:
TimeTrackingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.jira.issue.util.AggregateTimeTrackingBeangetAggregates(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.
-
Constructor Details
-
TimeTrackingServiceImpl
public TimeTrackingServiceImpl()
-
-
Method Details
-
updateRemainingEstimate
@Nonnull public ServiceResult updateRemainingEstimate(com.atlassian.jira.issue.Issue issue, String duration) Description copied from interface:TimeTrackingServiceUpdates the remaining estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update.- Specified by:
updateRemainingEstimatein interfaceTimeTrackingService- Parameters:
issue- the issue to updateduration- the duration to set- Returns:
- the outcome; potentially with errors
-
updateRemainingEstimate
public ServiceResult updateRemainingEstimate(com.atlassian.jira.issue.Issue issue, String duration, boolean updateOriginalEstimateIfNotSet) Description copied from interface:TimeTrackingServiceUpdates 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.- Specified by:
updateRemainingEstimatein interfaceTimeTrackingService- 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 public ServiceResult updateOriginalEstimate(com.atlassian.jira.issue.Issue issue, String duration) Description copied from interface:TimeTrackingServiceUpdates the original estimate of an issue. This will fire the Issue Updated event as well as send out an email due to the update.- Specified by:
updateOriginalEstimatein interfaceTimeTrackingService- Parameters:
issue- the issue to updateduration- the duration to set- Returns:
- the outcome; potentially with errors
-
updateOriginalEstimate
@Nonnull public ServiceResult updateOriginalEstimate(com.atlassian.jira.issue.Issue issue, String duration, boolean updateRemainingEstimateIfNotSet) Description copied from interface:TimeTrackingServiceUpdates 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.- Specified by:
updateOriginalEstimatein interfaceTimeTrackingService- 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
public 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.- Specified by:
getAggregatesin interfaceTimeTrackingService- Parameters:
issue- issue to calculate aggregates for.- Returns:
- The bean containing all aggregate values.
-