# Tasks · fields and states

A Task is something to do once. It is open or done; it can have a due date and time, a priority, sub-tasks, people and the Note or Mindmap behind it.

Checked 2026-12-05 · https://xale.app/docs/ai/tasks-fields-and-states

## Fields

`xale_read_tasks` and `xale_read_task` return:

| Field | Values |
| --- | --- |
| `id`, `title` | The Task |
| `status` | `done` or `todo`. Completion is binary |
| `completedAt` | When it was done, or `null` |
| `priority` | `low`, `medium` or `high` |
| `dueDate`, `dueTime` | `YYYY-MM-DD`, `HH:mm`, in the person's time zone |
| `durationMin` | Expected minutes |
| `activityType` | `deep-work`, `meeting`, `errand`, `admin`, `planning` or `vacation` |
| `areaIds`, `linkedProjectIds` | Areas, Projects |
| `linkedMilestoneIds` | Visible forward links to Milestones |
| `accountableIds`, `workerIds` | **Deliver to** and **Assigned to** People |

`xale_read_task` adds:

| Field | What it is |
| --- | --- |
| `notes` | Up to 4,000 characters shown |
| `linkedNoteId`, `linkedMapId`, `linkedNodeId` | The Note, Mindmap and node behind it |
| `milestones` | Up to 20 visible entries. Each has `id`, `title`, `date` and `endDate`, including visible legacy links in the same list. |
| `subtasks` | Up to 100: `id`, `title`, `durationMin`, `status` (as on the Task), `completedAt`, `order` |

## Reading many

`xale_read_tasks` lists open Tasks by default. `status`: `done`, `any`, or `todo` (also `not_started`) for open Tasks, the default; `areaId`; `dueBeforeYmd` for Tasks due on or before a day; `limit`, 30 by default, up to 500. Start at `offset: 0`. Pass `nextOffset` as `offset` with the same filters and page size while `hasMore` is true. The response gives the matching visible count in `total` and the page's items in `tasks`. Tasks are ordered by due date (undated last), then title and ID. Omit `areaId` to include Tasks without an Area or Project.

For example, start with `{"limit": 2, "offset": 0}`. If the response says `"hasMore": true` and `"nextOffset": 2`, send `{"limit": 2, "offset": 2}` next. The last page gives `nextOffset: null`.

For “what's on today”, `xale_read_today` gives Tasks due today and overdue.

## Creating

`xale_create_task`: `title` (required), `dueDate`, `dueTime`, `priority` (`medium` if left out), `areaIds`, `notes`, `people` (Deliver to), `projects`, `milestones`, ordered `subtasks` titles, and a `requestId`. Resolve relative dates (“next Friday”) to `YYYY-MM-DD` first.

## Changing

| To | Use |
| --- | --- |
| Mark done, with its subtasks | `xale_complete_task` |
| Reopen | `xale_update_task` with `completed: false` |
| Change title, due date or time (`null` clears), duration, priority, notes, Activity type, or the Note or Mindmap behind it | `xale_update_task` |
| Change subtasks | `xale_update_task` with `subtasks`: those you send are changed or added by id; those you leave out are kept |
| Change Areas, People, Projects or Milestones | `xale_change_links` |
| Put it in the day | `xale_schedule_intention` with `kind: "task"` |
| Archive it | `xale_prepare_removal` with `archive_task`, then the person's yes |

## Limits

Pro allows 2,500 Tasks. The board view and the mind-map view are Pro in the app.

## Related

- For people: [What does each field in a Xale task do?](https://xale.app/help/task-details-what-each-field-does)
- For people: [How do I add subtasks in Xale?](https://xale.app/help/subtasks-small-steps)
- For people: [What is Deliver to in Xale?](https://xale.app/help/deliver-to-someone-waiting)
- Tools: [xale_read_tasks](https://xale.app/docs/ai/tools/xale_read_tasks)
- Tools: [xale_read_task](https://xale.app/docs/ai/tools/xale_read_task)
- Tools: [xale_create_task](https://xale.app/docs/ai/tools/xale_create_task)
- Tools: [xale_update_task](https://xale.app/docs/ai/tools/xale_update_task)
- Tools: [xale_complete_task](https://xale.app/docs/ai/tools/xale_complete_task)
- Read next: [One-off actions · as a Task](https://xale.app/docs/ai/one-off-actions-as-a-task)
- Read next: [Hard tasks · think first](https://xale.app/docs/ai/hard-tasks-think-first)
