Skip to content

tasks

get

Get tasks

Returns all tasks. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.

Permissions required: Permission to access the Confluence site ('Can use' global permission). Only tasks that the user has permission to view will be returned.

GET /tasks

FlagTypeRequiredDescription
--assigned-tostringNoFilters on the Account ID of the user to whom this task is assigned. Multiple IDs can be specified.
--blogpost-idstringNoFilters on the blog post ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be used in conjunction.
--body-formatstringNoThe content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--completed-at-fromstringNoFilters on start of date-time range of task based on completion date (inclusive). Input is epoch time in milliseconds.
--completed-at-tostringNoFilters on end of date-time range of task based on completion date (inclusive). Input is epoch time in milliseconds.
--completed-bystringNoFilters on the Account ID of the user who completed this task. Multiple IDs can be specified.
--created-at-fromstringNoFilters on start of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds.
--created-at-tostringNoFilters on end of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds.
--created-bystringNoFilters on the Account ID of the user who created this task. Multiple IDs can be specified.
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--due-at-fromstringNoFilters on start of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds.
--due-at-tostringNoFilters on end of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds.
--include-blank-tasksstringNoSpecifies whether to include blank tasks in the response. Defaults to true.
--limitstringNoMaximum number of tasks per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
--page-idstringNoFilters on the page ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be used in conjunction.
--space-idstringNoFilters on the space ID of the task. Multiple IDs can be specified.
--statusstringNoFilters on the status of the task.
--task-idstringNoFilters on task ID. Multiple IDs can be specified.

Example:

bash
cf tasks get

get-by-id

Get task by id

Returns a specific task.

Permissions required: Permission to view the containing page or blog post and its corresponding space.

GET /tasks/{id}

FlagTypeRequiredDescription
--body-formatstringNoThe content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--idstringYesThe ID of the task to be returned. If you don't know the task ID, use Get tasks and filter the results.

Example:

bash
cf tasks get-by-id --id <id>

update

Update task

Update a task by id. This endpoint currently only supports updating task status.

Permissions required: Permission to edit the containing page or blog post and view its corresponding space.

PUT /tasks/{id}

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)
--body-formatstringNoThe content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--idstringYesThe ID of the task to be updated. If you don't know the task ID, use Get tasks and filter the results.

Example:

bash
cf tasks update --id <id>