association field varies depending on type. The four examples below cover every possible shape.
Example: todo task
A standalone to-do has no association. Thechat_id field and association are both null.
Example: chat task
Linked to a chat.association.chat_id and the top-level chat_id mirror each other.
Example: message task
Linked to a specific message inside a chat.association.chat_id is the chat the message belongs to (denormalized for convenience).
Example: ticket task
Linked to a ticket.association.chat_id is the chat the ticket lives in.
Attributes
Server-generated. Stable identifier for the task (e.g.
task-00000000000000a1).Human-readable summary. 1–500 characters.
What this task is attached to. One of
todo, chat, message, ticket. Defaults to todo. Immutable after creation.Workflow state. One of
open, inprogress, closed. Defaults to open.Numeric priority. One of
1, 2, 3. 1 is the highest. Defaults to 1.Email of an org member, or
null if unassigned.Email of the org member who created the task, or the literal string
"api" if not specified on create. Immutable after creation.Email of whoever last modified the task, or
"api".ISO 8601 formatted timestamp when the task was created. Immutable.
ISO 8601 formatted timestamp. Auto-updated on every PATCH.
ISO 8601 timestamp for when the task is due.
null if no deadline.ISO 8601 timestamp for when a reminder should fire.
null if no reminder.Free-form additional context.
Derived from the
association at create time. Populated for chat, message, and ticket tasks; null for todo.Structured reference to the linked resource.
null for todo tasks. Immutable after creation.Auto-managed completion record. Populated when the task is closed.