Class TaskImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.TaskImpl
- All Implemented Interfaces:
Task
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.Task
Task.Priority, Task.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes this task.Returns a list ofuserswho 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 StringThe custom ID for this task.Returns when this Task was closed.@NotNull OffsetDateTimeReturns when this Task was created.@NotNull OffsetDateTimeReturns when this Task was last modified.Returns the complete description of this task.@Nullable OffsetDateTimeReturns the due date of this task, if there is one.@NotNull StringgetId()The unique ID of this task.@NotNull TaskManagerReturn the manager of this task.@NotNull StringgetName()The name of this task.Returns the order index of this task.@Nullable StringRetrieves the parent ID of this task.@NotNull Task.PriorityThe priority of this task.@Nullable OffsetDateTimeReturns the start date of this task, if there is one.@NotNull Task.StatusReturns 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 StringgetUrl()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 specifiedFileto this task.
-
Constructor Details
-
TaskImpl
-
-
Method Details
-
getId
Description copied from interface:TaskThe 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:TaskThe custom ID for this task.This feature is exclusive to the Business plan or above, so this is likely to be null.
- Specified by:
getCustomIdin interfaceTask- Returns:
- A possibly null custom ID for this task
-
getName
Description copied from interface:TaskThe name of this task. This is also referred to as the title. -
getTextContent
Description copied from interface:TaskReturns the text content of this task.
The API seems to return the same asTask.getDescription().- Specified by:
getTextContentin interfaceTask- Returns:
- the description of this task
- See Also:
-
getDescription
Description copied from interface:TaskReturns the complete description of this task.- Specified by:
getDescriptionin interfaceTask- Returns:
- the description of this task
-
getStatus
Description copied from interface:TaskReturns the status of this task. -
getOrderIndex
Description copied from interface:TaskReturns the order index of this task.
The higher the index, the lower (vertically) the task will be.- Specified by:
getOrderIndexin interfaceTask- Returns:
- the order index of this task
-
getDateCreated
Description copied from interface:TaskReturns 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:
getDateCreatedin interfaceTask- Returns:
- the date this task was created
-
getDateUpdated
Description copied from interface:TaskReturns when this Task was last modified.- Specified by:
getDateUpdatedin interfaceTask- Returns:
- the date this task was last modified
-
getDateClosed
Description copied from interface:TaskReturns when this Task was closed.
If the task is not closed, this will be null.- Specified by:
getDateClosedin interfaceTask- Returns:
- the date this task was closed, or null if it is not closed
-
getCreator
Description copied from interface:TaskReturns the user who created this task.- Specified by:
getCreatorin interfaceTask- Returns:
- the user who created this task
-
getAssignees
Description copied from interface:TaskReturns a list ofuserswho 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:
getAssigneesin interfaceTask- Returns:
- a list of users assigned to work on this task
-
getWatchers
Description copied from interface:TaskReturns 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:
getWatchersin interfaceTask- Returns:
- the watchers for this task
-
getChecklists
Description copied from interface:TaskReturns a list of checklists associated with this task.
This list will be empty if this task has no checklists.- Specified by:
getChecklistsin interfaceTask- Returns:
- a list of checklists associated with this task
-
getParentId
Description copied from interface:TaskRetrieves 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:
getParentIdin interfaceTask- Returns:
- the parent ID of this task
-
retrieveParent
Description copied from interface:TaskRetrieves the parent task of this task.This will be null if this task is a top-level task.
- Specified by:
retrieveParentin interfaceTask- Returns:
- a requester to get the parent task
-
getPriority
Description copied from interface:TaskThe priority of this task. If there is no priority set, this will returnTask.Priority.NONE.- Specified by:
getPriorityin interfaceTask- Returns:
- the never-null priority of this task
-
getDueDate
Description copied from interface:TaskReturns the due date of this task, if there is one.
If there is no due date, this will return null.- Specified by:
getDueDatein interfaceTask- Returns:
- the possibly-null due date of this task
-
getStartDate
Description copied from interface:TaskReturns the start date of this task, if there is one.
If there is no start date, this will return null.- Specified by:
getStartDatein interfaceTask- Returns:
- the possibly-null start date of this task
-
getTimeEstimate
Description copied from interface:TaskReturns the estimated time to complete this task.- Specified by:
getTimeEstimatein interfaceTask- Returns:
- the estimated time to complete this task
-
getTimeSpent
Description copied from interface:TaskReturns the time tracked to this task.
This requires the space to have theTime TrackingClickApp enabled.- Specified by:
getTimeSpentin interfaceTask- Returns:
- the time spent on this task
-
getCustomFields
Description copied from interface:TaskReturns all the custom fields for this task.
Custom Fields may not have a value set.- Specified by:
getCustomFieldsin interfaceTask- Returns:
- all the custom fields for this task
-
getListId
-
getFolderId
- Specified by:
getFolderIdin interfaceTask
-
getSpaceId
- Specified by:
getSpaceIdin interfaceTask
-
retrieveSpace
- Specified by:
retrieveSpacein interfaceTask
-
uploadAttachment
Description copied from interface:TaskUploads the specifiedFileto this task.- Specified by:
uploadAttachmentin 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:TaskThe URL link to this task. -
getManager
Description copied from interface:TaskReturn the manager of this task.
This is used to modify the task.- Specified by:
getManagerin interfaceTask- Returns:
- the manager of this task
-
resolve
Description copied from interface:TaskResolves missing fields in this task.
Due to API limitations, this excludes custom field values. -
delete
Description copied from interface:TaskDeletes this task.
-