Class TaskImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.TaskImpl
- All Implemented Interfaces:
Task
-
Nested Class Summary
Nested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.Task
Task.Priority, Task.Status
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
Deletes this task.Returns a list ofusers
who are assigned to work on this task.Returns a list of checklists associated with this task.Returns the user who created this task.@NotNull List<ICustomField>
Returns all the custom fields for this task.@Nullable String
The custom ID for this task.Returns when this Task was closed.@NotNull OffsetDateTime
Returns when this Task was created.@NotNull OffsetDateTime
Returns when this Task was last modified.Returns the complete description of this task.@Nullable OffsetDateTime
Returns the due date of this task, if there is one.@NotNull String
getId()
The unique ID of this task.@NotNull TaskManager
Return the manager of this task.@NotNull String
getName()
The name of this task.Returns the order index of this task.@Nullable String
Retrieves the parent ID of this task.@NotNull Task.Priority
The priority of this task.@Nullable OffsetDateTime
Returns the start date of this task, if there is one.@NotNull Task.Status
Returns the status of this task.Returns the text content of this task.Returns the estimated time to complete this task.Returns the time tracked to this task.@NotNull String
getUrl()
The URL link to this task.Returns the watchers for this task.resolve()
Resolves missing fields in this task.Retrieves the parent task of this task.uploadAttachment
(File file, String filename) Uploads the specifiedFile
to this task.
-
Constructor Details
-
TaskImpl
-
-
Method Details
-
getId
Description copied from interface:Task
The unique ID of this task.All IDs are unique on ClickUp, so this can safely be used as a primary key.
-
getCustomId
Description copied from interface:Task
The custom ID for this task.This feature is exclusive to the Business plan or above, so this is likely to be null.
- Specified by:
getCustomId
in interfaceTask
- Returns:
- A possibly null custom ID for this task
-
getName
Description copied from interface:Task
The name of this task. This is also referred to as the title. -
getTextContent
Description copied from interface:Task
Returns the text content of this task.
The API seems to return the same asTask.getDescription()
.- Specified by:
getTextContent
in interfaceTask
- Returns:
- the description of this task
- See Also:
-
getDescription
Description copied from interface:Task
Returns the complete description of this task.- Specified by:
getDescription
in interfaceTask
- Returns:
- the description of this task
-
getStatus
Description copied from interface:Task
Returns the status of this task. -
getOrderIndex
Description copied from interface:Task
Returns the order index of this task.
The higher the index, the lower (vertically) the task will be.- Specified by:
getOrderIndex
in interfaceTask
- Returns:
- the order index of this task
-
getDateCreated
Description copied from interface:Task
Returns when this Task was created.
If this task was imported, it may show up as a date prior to ClickUp's creation date. Pretty neat!- Specified by:
getDateCreated
in interfaceTask
- Returns:
- the date this task was created
-
getDateUpdated
Description copied from interface:Task
Returns when this Task was last modified.- Specified by:
getDateUpdated
in interfaceTask
- Returns:
- the date this task was last modified
-
getDateClosed
Description copied from interface:Task
Returns when this Task was closed.
If the task is not closed, this will be null.- Specified by:
getDateClosed
in interfaceTask
- Returns:
- the date this task was closed, or null if it is not closed
-
getCreator
Description copied from interface:Task
Returns the user who created this task.- Specified by:
getCreator
in interfaceTask
- Returns:
- the user who created this task
-
getAssignees
Description copied from interface:Task
Returns a list ofusers
who are assigned to work on this task.
If the space doesn't haveSpace.isMultipleAssignees()
enabled, this will return a list of one user.- Specified by:
getAssignees
in interfaceTask
- Returns:
- a list of users assigned to work on this task
-
getWatchers
Description copied from interface:Task
Returns the watchers for this task. This list will be empty if this task was retrieved fromClickUp4j.retrieveTasks(String)
, but will show up if this task was retrieved fromClickUp4j.retrieveTask(String)
.- Specified by:
getWatchers
in interfaceTask
- Returns:
- the watchers for this task
-
getChecklists
Description copied from interface:Task
Returns a list of checklists associated with this task.
This list will be empty if this task has no checklists.- Specified by:
getChecklists
in interfaceTask
- Returns:
- a list of checklists associated with this task
-
getParentId
Description copied from interface:Task
Retrieves the parent ID of this task.This will be null if this task is a top-level task.
To get the parent task, useTask.retrieveParent()
.- Specified by:
getParentId
in interfaceTask
- Returns:
- the parent ID of this task
-
retrieveParent
Description copied from interface:Task
Retrieves the parent task of this task.This will be null if this task is a top-level task.
- Specified by:
retrieveParent
in interfaceTask
- Returns:
- a requester to get the parent task
-
getPriority
Description copied from interface:Task
The priority of this task. If there is no priority set, this will returnTask.Priority.NONE
.- Specified by:
getPriority
in interfaceTask
- Returns:
- the never-null priority of this task
-
getDueDate
Description copied from interface:Task
Returns the due date of this task, if there is one.
If there is no due date, this will return null.- Specified by:
getDueDate
in interfaceTask
- Returns:
- the possibly-null due date of this task
-
getStartDate
Description copied from interface:Task
Returns the start date of this task, if there is one.
If there is no start date, this will return null.- Specified by:
getStartDate
in interfaceTask
- Returns:
- the possibly-null start date of this task
-
getTimeEstimate
Description copied from interface:Task
Returns the estimated time to complete this task.- Specified by:
getTimeEstimate
in interfaceTask
- Returns:
- the estimated time to complete this task
-
getTimeSpent
Description copied from interface:Task
Returns the time tracked to this task.
This requires the space to have theTime Tracking
ClickApp enabled.- Specified by:
getTimeSpent
in interfaceTask
- Returns:
- the time spent on this task
-
getCustomFields
Description copied from interface:Task
Returns all the custom fields for this task.
Custom Fields may not have a value set.- Specified by:
getCustomFields
in interfaceTask
- Returns:
- all the custom fields for this task
-
getListId
-
getFolderId
- Specified by:
getFolderId
in interfaceTask
-
getSpaceId
- Specified by:
getSpaceId
in interfaceTask
-
retrieveSpace
- Specified by:
retrieveSpace
in interfaceTask
-
uploadAttachment
Description copied from interface:Task
Uploads the specifiedFile
to this task.- Specified by:
uploadAttachment
in interfaceTask
- Parameters:
file
- the file to uploadfilename
- the name of the file- Returns:
- a requester to upload an attachment to this task
-
getUrl
Description copied from interface:Task
The URL link to this task. -
getManager
Description copied from interface:Task
Return the manager of this task.
This is used to modify the task.- Specified by:
getManager
in interfaceTask
- Returns:
- the manager of this task
-
resolve
Description copied from interface:Task
Resolves missing fields in this task.
Due to API limitations, this excludes custom field values. -
delete
Description copied from interface:Task
Deletes this task.
-