> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avazal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks and lists

> Read, create, update and comment on tasks from Slack Lists and Linear through one set of operations.

A task is an item in a Slack List or a Linear issue. A list is a Slack List, or a Linear team, saved view, or your own issues. Both share the same fields and operations, and `source` (`slack` or `linear`) says which one an item came from. Reading needs `tasks:read` and changes need `tasks:write`. Linear tasks appear once someone in your organization connects Linear in Settings.

## Find tasks

`tasks.list` returns the tasks in one `list`, or the ones assigned to you across Slack Lists and Linear with `assignee: "me"`. Pass `done: false` for open tasks only.

```bash theme={null}
avazal tasks.list --assignee me --done false
avazal lists.list --source slack
avazal tasks.list --list chcv_…/F07…
```

`lists.list` finds Slack Lists, narrowed by `account` or `conversation`, and Linear teams, views and `linear:mine`. Task ids are `chcv_…/<file id>/<item id>` for a Slack List item, or an identifier such as `ENG-123` for a Linear issue.

Every task has a `title`, `url`, `done`, `status`, `assignees`, `due` (`YYYY-MM-DD`), `priority`, `description` and `labels`. They are `null` or empty when the list has no such field. `fields` holds every raw value by field id, for a Slack List's custom columns.

## Read a task and its list

```bash theme={null}
avazal tasks.get --id ENG-123
avazal lists.get --id chcv_…/F07…
```

`lists.get` returns a list's `fields`, with their types, roles and options (statuses, priorities, labels), and the `members` tasks can be assigned to. Read it before changing a status, label or assignee.

For a Slack List task, `tasks.get` also returns a `work` block: the linked GitHub branch or pull request (`development`), attached `documents`, `completeOnMerge`, and whether it is `archived`.

Pasted Slack List and Linear links work too: [`search.resolve`](https://docs.avazal.com/concepts/links) returns the object, then read it with `tasks.get` or `lists.get`.

## Create and update

These change Slack or Linear for everyone, so they need `tasks:write` and are [outward](https://docs.avazal.com/authentication.md#risk).

```bash theme={null}
avazal tasks.create '{"list": "chcv_…/F07…", "title": "Book the venue", "due": "2026-12-05"}'
avazal tasks.update '{"id": "chcv_…/F07…/Rec…", "done": true}'
```

* `tasks.create` takes the `list`, a `title` and any common field. Pass `about` with a chat message id and the task is linked to that message; the result carries an `undo` token.
* `tasks.update` changes only the fields you pass. `done: true` ticks the done checkbox, or moves the status to a done status when the list has no checkbox. `status` and `priority` take an option's name or id, `assignees` take ids from `lists.get`, and `null` clears `due`, `priority` and `description`.
* `fields` sets values by field id for columns the common fields don't cover, such as a Slack List's custom columns.
* `tasks.delete` deletes a Slack List task for everyone. It cannot be undone. A Linear issue is updated, never deleted.
* `lists.create` makes a new Slack List with a `title` and up to 50 `fields`, each a `name` and a `kind` such as `select`, `person`, `date` or `checkbox`. It is added as a tab in the `conversation` and posted there.

## Comment

`comments.create` posts a comment as you, and `comments.list` pages through a task's comments, oldest first. The `target` is the task id.

```bash theme={null}
avazal comments.create '{"target": "ENG-123", "text": "Fixed in the latest release."}'
avazal comments.list --target chcv_…/F07…/Rec…
```

The same operations comment on Slack canvases; see [Documents and canvases](https://docs.avazal.com/guides/documents.md#canvas-comments). Comments need the `tasks:read` or `tasks:write` scope of the object they are on.

## Track work on a Slack List task

The `work` block links a task to the code that does it. Set these with `tasks.update` on a Slack List task:

* `development` links a GitHub branch or pull request by its url, `{"pullId": "…"}` picks which pull request counts when a branch has several, and `null` unlinks it. Find branches and pull requests with `search.query` and `types: ["branch", "pull_request"]`.
* `completeOnMerge` marks the task done when its pull request merges.
* `archived` hides the task from Avazal's list views for everyone. The Slack List is unchanged.

`links.create` attaches an Avazal document to a task (`from` is the task, `to` the `doc_…` id), and `links.list` and `links.delete` read and detach them. `links.create` between a message and a Linear issue records that one is about, duplicates or answers the other.

## Public links

`shares.update` with `shared: true` turns on a public link for a Slack List task, a canvas or a document a run saved, and `shares.get` reads it. See [Documents and canvases](https://docs.avazal.com/guides/documents.md#public-links).

## In MCP

Each operation on this page is an action of one MCP tool. The [tool catalogue](https://docs.avazal.com/mcp-tools.md) lists every tool with its fields.

| Operation | MCP tool |
| - | - |
| `tasks.list` | `search (type task)` |
| `lists.list` | `search (type list)` |
| `tasks.get` | `read (type task)` |
| `lists.get` | `read (type list)` |
| `search.resolve` | `read (type link)` |
| `tasks.create` | `task (action create)` |
| `tasks.update` | `task (action update)` |
| `tasks.delete` | `task (action delete)` |
| `lists.create` | `task (action create_list)` |
| `comments.create` | `comment` |
| `comments.list` | `read (type comments)` |
| `search.query` | `search (type everything)` |
| `links.create` | `link (action create)` |
| `links.list` | `read (type links)` |
| `links.delete` | `link (action delete)` |
| `shares.update` | `link (action share)` |
| `shares.get` | `read (type share)` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.