Interface TaskManager
- All Superinterfaces:
GenericManager<Task>
- All Known Implementing Classes:
TaskManagerImpl
This manager class is used to interact with tasks.
Save the task by calling
save(Consumer)
.-
Method Summary
Modifier and TypeMethodDescriptionaddAssignee
(@NotNull User user) Adds an assignee to this task.addAssignees
(@NotNull User... users) Adds multiple assignees to this task.complete()
Synchronously saves the entity.removeAssignee
(@NotNull User user) Removes an assignee from this task.removeAssignees
(@NotNull User... users) Removes multiple assignees from this task.void
Saves the entity.setDescription
(@Nullable String description) Changes the description of this task.Changes the name of this task.Sets the parent task of this task.setPriority
(Task.Priority priority) Sets the priority of this task.setStatus
(Task.Status status) Sets the status of this task.setTimeEstimate
(@NotNull Duration duration) Sets the time estimate of this task.Methods inherited from interface pw.chew.clickup4j.api.entities.managers.GenericManager
getClickUp4j
-
Method Details
-
setName
Changes the name of this task.- Parameters:
name
- The new name of this task.- Returns:
- This task manager.
-
setDescription
Changes the description of this task.
Passnull
or""
to remove the description.- Parameters:
description
- The new description of this task.- Returns:
- This task manager.
-
setStatus
Sets the status of this task.- Parameters:
status
- The new status of this task.- Returns:
- This task manager.
-
setPriority
Sets the priority of this task.- Parameters:
priority
- The new priority of this task.- Returns:
- This task manager.
-
setParent
Sets the parent task of this task.
This converts the task to a subtask. This process is not reversible.- Parameters:
task
- The parent task.- Returns:
- This task manager.
-
setTimeEstimate
Sets the time estimate of this task.- Parameters:
duration
- The time estimate of this task.- Returns:
- This task manager.
-
addAssignee
Adds an assignee to this task.- Parameters:
user
- The assignee to add.- Returns:
- This task manager.
-
addAssignees
Adds multiple assignees to this task.- Parameters:
users
- The assignees to add.- Returns:
- This task manager.
-
removeAssignee
Removes an assignee from this task.- Parameters:
user
- The assignee to remove.- Returns:
- This task manager.
-
removeAssignees
Removes multiple assignees from this task.- Parameters:
users
- The assignees to remove.- Returns:
- This task manager.
-
save
Description copied from interface:GenericManager
Saves the entity.
Pass a consumer to be called when the request is complete.- Specified by:
save
in interfaceGenericManager<Task>
- Parameters:
callback
- The consumer to be called when the request is complete.
-
complete
Task complete()Description copied from interface:GenericManager
Synchronously saves the entity.- Specified by:
complete
in interfaceGenericManager<Task>
- Returns:
- The saved entity.
-