java.lang.Object | |
↳ | com.atlassian.jira.issue.worklog.DefaultWorklogManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a worklog based on the passed in
Worklog object and associates
it with the given issue. | |||||||||||
Deletes the specified worklog and updates the issue's remaining estimate and time spent fields.
| |||||||||||
Used to get a worklog by its id.
| |||||||||||
Returns all child worklogs of a specified issue
| |||||||||||
Returns all child worklogs of a specified issue, in a PagedList
| |||||||||||
Returns the count of all
Worklog 's that have a visibility restriction
of the provided group. | |||||||||||
This is a convenience method to allow us to easily get a ProjectRole.
| |||||||||||
Updates
Worklog 's such that worklogs that have a visibility
restriction of the provided groupName will be changed to have a visibility restriction of the
provided swapGroup. | |||||||||||
Updates the provided
Worklog . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a worklog based on the passed in Worklog
object and associates
it with the given issue.
user | is the user who is trying to create the worklog, this can be different than the user identified by
getAuthor() . |
---|---|
worklog | the object used to provide the parameters that will be used to create the worklog. |
newEstimate | will be used to set the time estimate for this worklog. |
dispatchEvent | if true then an event of type ISSUE_WORKLOGGED_ID
will be dispatched and any notifications listening for that event will be triggered. If false no event will be
dispatched. |
Worklog
object that represents the newly created worklog.
Deletes the specified worklog and updates the issue's remaining estimate and time spent fields.
user | the user who is performing the action |
---|---|
worklog | the value to remove in the database |
newEstimate | the value to set the Issue 's remainig estimate. If null the value will be left alone. |
dispatchEvent | if true then an event of type ISSUE_WORKLOG_DELETED_ID
will be dispatched and any notifications listening for that event will be triggered. If false no event will be
dispatched. |
Used to get a worklog by its id.
id | uniquely identifies the worklog |
---|
Returns all child worklogs of a specified issue
issue | the specified parent issue (not null) |
---|
Returns all child worklogs of a specified issue, in a PagedList
issue | the specified parent issue (not null) |
---|
Returns the count of all Worklog
's that have a visibility restriction
of the provided group.
groupName | identifies the group the worklogs are restricted by, this must not be null. |
---|
This is a convenience method to allow us to easily get a ProjectRole. This is being used by the CommentImpl
to get a ProjectRole
.
ProjectRole
then you should be using the
ProjectRoleManager
.projectRoleId | the id to the ProjectRole object you would like returned. |
---|
Updates Worklog
's such that worklogs that have a visibility
restriction of the provided groupName will be changed to have a visibility restriction of the
provided swapGroup.
Note: There is no validation performed by this method to determine if the provided swapGroup is a valid
group with JIRA. This validation must be done by the caller.
groupName | identifies the group the worklogs are restricted by, this must not be null. |
---|---|
swapGroup | identifies the group the worklogs will be changed to be restricted by, this must not be null. |
Updates the provided Worklog
. This method will
adjust the issue's remaining estimate to be the new value which has been passed to this method, the old
remaining estimate value will be lost.
user | the user who is performing the action |
---|---|
worklog | the value to update in the database |
newEstimate | the value to set the Issue 's remainig estimate. If null the value will be left alone. |
dispatchEvent | if true then an event of type ISSUE_WORKLOG_UPDATED_ID
will be dispatched and any notifications listening for that event will be triggered. If false no event will be
dispatched. |