public class DefaultTimeTrackingIssueUpdater extends Object implements TimeTrackingIssueUpdater
EVENT_ORIGINAL_WORKLOG_PARAMETER
Constructor and Description |
---|
DefaultTimeTrackingIssueUpdater(OfBizDelegator ofBizDelegator,
IssueManager issueManager,
JiraAuthenticationContext jiraAuthenticationContext,
JiraDurationUtils jiraDurationUtils,
IssueFactory issueFactory,
IssueEventManager issueEventManager,
IssueEventBundleFactory issueEventBundleFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
updateIssueOnWorklogCreate(ApplicationUser user,
Worklog worklog,
Long newEstimate,
boolean dispatchEvent)
Will set the
Worklog.getIssue() 's remaining estimate to the newEstimate
and will increment the issues time spent by the Worklog.getTimeSpent() . |
void |
updateIssueOnWorklogDelete(ApplicationUser user,
Worklog worklog,
Long newEstimate,
boolean dispatchEvent)
Will set the
Worklog.getIssue() 's remaining estimate to the newEstimate
and will decrement the issues time spent by the Worklog.getTimeSpent() . |
void |
updateIssueOnWorklogUpdate(ApplicationUser user,
Worklog originalWorklog,
Worklog newWorklog,
Long originalTimeSpent,
Long newEstimate,
boolean dispatchEvent)
Will set the
Worklog.getIssue() 's remaining estimate to the newEstimate
and will decrement the issues time spent by the originalTimeSpent and then increment it by the
Worklog.getTimeSpent() . |
public DefaultTimeTrackingIssueUpdater(OfBizDelegator ofBizDelegator, IssueManager issueManager, JiraAuthenticationContext jiraAuthenticationContext, JiraDurationUtils jiraDurationUtils, IssueFactory issueFactory, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
public void updateIssueOnWorklogCreate(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent)
TimeTrackingIssueUpdater
Worklog.getIssue()
's remaining estimate to the newEstimate
and will increment the issues time spent by the Worklog.getTimeSpent()
.
updateIssueOnWorklogCreate
in interface TimeTrackingIssueUpdater
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 a EventType.ISSUE_WORKLOGGED_ID
will
be fired, otherwise no event will be fired.public void updateIssueOnWorklogUpdate(ApplicationUser user, Worklog originalWorklog, Worklog newWorklog, Long originalTimeSpent, Long newEstimate, boolean dispatchEvent)
TimeTrackingIssueUpdater
Worklog.getIssue()
's remaining estimate to the newEstimate
and will decrement the issues time spent by the originalTimeSpent and then increment it by the
Worklog.getTimeSpent()
.
updateIssueOnWorklogUpdate
in interface TimeTrackingIssueUpdater
user
- the user performing the action, this user will be available in the dispatched event.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 a EventType.ISSUE_WORKLOG_UPDATED_ID
willpublic void updateIssueOnWorklogDelete(ApplicationUser user, Worklog worklog, Long newEstimate, boolean dispatchEvent)
TimeTrackingIssueUpdater
Worklog.getIssue()
's remaining estimate to the newEstimate
and will decrement the issues time spent by the Worklog.getTimeSpent()
.
updateIssueOnWorklogDelete
in interface TimeTrackingIssueUpdater
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 a EventType.ISSUE_WORKLOG_DELETED_ID
will
be fired, otherwise no event will be fired.Copyright © 2002-2022 Atlassian. All Rights Reserved.