Package com.atlassian.jira.issue.worklog
Interface TimeTrackingIssueUpdater
- All Known Implementing Classes:
DefaultTimeTrackingIssueUpdater
public interface TimeTrackingIssueUpdater
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateIssueOnWorklogCreate(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will increment the issues time spent by theWorklog.getTimeSpent().voidupdateIssueOnWorklogDelete(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will decrement the issues time spent by theWorklog.getTimeSpent().voidupdateIssueOnWorklogUpdate(ApplicationUser user, Worklog originalWorklog, Worklog newWorklog, Long originalTimeSpent, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will decrement the issues time spent by the originalTimeSpent and then increment it by theWorklog.getTimeSpent().
-
Field Details
-
EVENT_ORIGINAL_WORKLOG_PARAMETER
- See Also:
-
-
Method Details
-
updateIssueOnWorklogCreate
void updateIssueOnWorklogCreate(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will increment the issues time spent by theWorklog.getTimeSpent().
If the newEstimate is null then the Issue's remaining estimate will not be changed.
This method will generate change items for the updated issue fields and will update the issue's last updated date.- Parameters:
user- the user performing the action, this user will be available in the dispatched event.worklog- specifies the new amount of time spent and the issue to update.newEstimate- if specified this value will over-write the Issue's remaining estimate.dispatchEvent- if true then aEventType.ISSUE_WORKLOGGED_IDwill be fired, otherwise no event will be fired.
-
updateIssueOnWorklogUpdate
void updateIssueOnWorklogUpdate(ApplicationUser user, Worklog originalWorklog, Worklog newWorklog, Long originalTimeSpent, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will decrement the issues time spent by the originalTimeSpent and then increment it by theWorklog.getTimeSpent().
If the newEstimate is null then the Issue's remaining estimate will not be changed.
This method will generate change items for the updated issue fields and will update the issue's last updated date.- Parameters:
user- the user performing the action, this user will be available in the dispatched event.originalWorklog-newWorklog-originalTimeSpent- specifies the amount of time spent that was originally specified before the worklog update.newEstimate- if specified this value will over-write the Issue's remaining estimate.dispatchEvent- if true then aEventType.ISSUE_WORKLOG_UPDATED_IDwill
-
updateIssueOnWorklogDelete
void updateIssueOnWorklogDelete(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent) Will set theWorklog.getIssue()'s remaining estimate to the newEstimate and will decrement the issues time spent by theWorklog.getTimeSpent().
If the newEstimate is null then the Issue's remaining estimate will not be changed.
This method will generate change items for the updated issue fields, the removed worklog, and will update the issue's last updated date.- Parameters:
user- the user performing the action, this user will be available in the dispatched event.worklog- specifies the amount of time spent to decrement and the issue to update.newEstimate- if specified this value will over-write the Issue's remaining estimate.dispatchEvent- if true then aEventType.ISSUE_WORKLOG_DELETED_IDwill be fired, otherwise no event will be fired.
-