Tasks
Last updated
Last updated
Definitions of the types and formats of the data used in the endpoints can be found at the bottom of the page.
GET
https://cubicl.io/api/v1/tasks
Gets tasks matching the given search criteria. Some details won't be returned in the response. Use Get Task By Id request to get all details.
Name | Type | Description |
---|---|---|
GET
https://cubicl.io/api/v1/tasks/:id
POST
https://cubicl.io/api/v1/tasks
PUT
https://cubicl.io/api/v1/tasks/:id
Updates a task with given details. All details are optional. Only given fields are updated. If you need to unset a field, set its values to null or appropriate falsy value. For example, an empty string for strings.
DELETE
https://cubicl.io/api/v1/tasks/:id
Deletes the task with given id.
POST
https://cubicl.io/api/v1/tasks/:id/subtasks
PUT
https://cubicl.io/api/v1/tasks/:id/state
Changes the state of a task to the given state. The default states for a project are Pending, Active, Completed, and Suspended. These states are recorded in the system as cb_waiting
, cb_active
, cb_completed
, and cb_suspended
, respectively. When using default states, the recorded values must be sent.
POST
https://cubicl.io/api/v1/tasks/:id/activities
Creates a comment on a task.
PUT
https://cubicl.io/api/v1/tasks/:taskId/activities/:activityId
In support requests and tasks shared with your client, you can change the visibility of your comment for your portal client. When comments in email tasks are made visible, the comment is sent as an email.
GET
https://cubicl.io/api/v1/tasks/:id/activities
Details of a task.
Tasks can have a checklist or a progress bar to indicate the steps / overall progress.
Update and progress actions and messages on tasks create task activities.
If task states are not customized for the project, default states are used. These values are translated into the user's language when shown in the UI. These values are:
You can check the project object to see whether task states are customized or defaults are being used.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
State Value | Translation in UI |
---|---|
group
string
Project id
assignee
string
Task assignee id
limit
number
skip
number
tag
string
Tag name
customer
string
Client id
assignedBy
string
Task owner id
startDate
number
Start of time interval the task's start date or deadline falls into. Must be used with "endDate" parameter.
endDate
number
Read "startDate"
archived
string
'true' to get archived tasks
'false' to get unarchived tasks
'all' to get all tasks
Default is 'false'
recursive
string
'true' to get tasks in descended projects too
Leave empty to get tasks only in given project
Default is empty
search
string
Text to search in task name
include
string
Comma separated list of properties to be included in the response
exclude
string
Comma separated list of properties to be excluded in the response. Cannot be used together with include.
id*
string
Task id
group*
string
Project id
workFlowId
string
Set when task is being created with a workflow.
parent
string
Parent task id. Set when task is being created a subtask of another task.
private
boolean
Default is false
recurrence
Recurrence
If 'recurrent' is true, this should be set. Check below for recurrence details.
recurrent
boolean
Default is false.
steps
CheckList | ProgressBar
If 'stepType' is 'steps', provide steps in CheckList format. Id field is not required. It will be set in the server.
If 'stepType' is 'progress', provide steps in ProgressBar format.
If 'stepType' is 'none', don't set this.
stepType
string
'none' for no task steps
'steps' for checklist
'progress' for progress bar
Default is 'none'
files
string[]
List of file ids. In order to create a file with files, you need to upload files before creating the task and set their ids here.
customer
string
Client id
tags
string[]
Tag ids
priority
number
1 to 5. 5 is highest. Default is 3.
assignees
string[]
List of assignee ids
deadline
number
start
number
Start date
desc
string
Task description
name*
string
Task name
state
string
State name. If not given, default state set in the project details will be used.
estimatedTime
number
Estimated time of the task in seconds. Shown in the UI only when enabled in the project settings.
customFields
object
An object where keys are the custom field names and values are the values of those fields.
followers
string[]
Ids of task followers. If not set, task owner and assignees will be followers.
id*
string
Task id
assignees
string[]
Assignee id list
followers
string[]
Follower id list
customer
string
Client id
deadline
number
Deadline
desc
string
Description
group
string
The project id to which the task is to be moved
files
string[]
File id list
recurrent
boolean
Boolean
recurrence
Recurrence
Task recurrence details
name
string
Task name
workflowId
string
Workflow id
start
number
Start date
steps
Checklist | ProgressBar
Required when 'stepType' is 'steps' or 'progress'
stepType
string
'none', 'steps' or 'progress'
private
boolean
state
string
Task state name. Required when moving the task to a different project and changing to a different state within that project.
subtasks
string[]
Subtask id list
estimatedTime
number
Estimated task duration in seconds
customFields
object
An object where keys are field names and values are field values.
updateTemplate
boolean
If task is recurrent this field will determine whether to update the details only on the task itself or including the future copies of the task.
id*
string
Task id
id*
string
Task ID
subtask*
string
The ID of the task to be added as a subtask.
id*
string
Task id
value*
string
New task state name.
id*
string
Task ID
content
string
The content of the comment. Either 'content' or 'fileIds' must be provided.
fileIds
string[]
List of file IDs. In order to create a comment with files, you need to upload the files before creating the comment and set their IDs here. Either 'fileIds' or 'content' must be provided.
mentions
Mention[]
List of users mentioned in the comment.
replyToId
string
The ID of the comment you want to reply to.
taskId*
string
Task ID
activityId*
string
The ID of the activity whose visibility is to be changed.
value*
boolean
Determines the visibility of the comment. true
makes it visible, false
removes the visibility.
id*
string
Task id
cb_waiting
Pending
cb_active
Active
cb_completed
Completed
cb_suspended
Suspended