steampipe plugin install theapsgroup/clickup

Table: clickup_task

Obtain information about tasks assigned to a specific team within your ClickUp environment.

However you MUST specify either an id (single) or either a list_id or team_id (for multiple tasks) in the WHERE or JOIN clause.

Note: by default archived items won't be returned, to return archived items only set archived = true in the where clause.

Examples

Get a task by id

select
id,
name,
description,
creator,
status,
priority
from
clickup_task
where
id = '69xca6m';

List all tasks for a specific list

select
id,
status,
date_created,
date_closed,
due_date,
team_id,
project_id
from
clickup_task
where
list_id = '19306756';

List all tasks for a specific team

select
id,
status,
date_created,
date_closed,
due_date,
team_id,
project_id
from
clickup_task
where
team_id = '2506756';

Obtain tasks for a team that are of a specific status

select
id,
status,
date_created,
date_closed,
due_date,
team_id,
space_id,
list_id,
folder_id
from
clickup_task
where
team_id = '2506756'
and status = 'planned';

Schema for clickup_task

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
archivedboolean=Indicates if the task is archived.
creatortextUsername of the user whom created the task.
creator_emailtextEmail address of the user whom created the task.
creator_idbigintIdentifier for the user whom created the task.
custom_idtextCustom identifier for the task.
date_closedtimestamp with time zoneTimestamp when the task was closed.
date_createdtimestamp with time zoneTimestamp when the task was created.
date_updatedtimestamp with time zoneTimestamp when the task was last updated.
dependenciesjsonbAn array of task dependencies.
descriptiontextThe description on the task.
due_datetextTimestamp when the task is due.
foldertextName of the folder the task belongs to.
folder_idtextIdentifier of the folder the task belongs to.
idtext=Unique string identifier for the task.
linked_tasksjsonbAn array of json objects to identify linked tasks.
listtextName of the list the task belongs to.
list_idtext=Identifier of the list the task belongs to.
nametextName given to the task.
order_indextextOrder index of the task.
parenttextUnique identifier for the parent task.
permission_leveltextPermission level associated to the task.
pointsbigintPoints attributed to the task.
prioritytextThe priority of the task.
projecttextName of the project the task belongs to.
project_idtextIdentifier of the project the task belongs to.
space_idtextIdentifier of the space the task belongs to.
start_datetimestamp with time zoneTimestamp when work on the task was started.
statustext=Current status of the task.
tagsjsonbAn array of tags associated with the task.
team_idtext=Unique identifier for the team associated with the task.
text_contenttextThe textual content of the task.
time_estimatebigintEstimate (in ms) of how long is required to complete the task.
urltextDirect URL to the task.