Assign a task to an agent instance, user, or type.
Returns: Updated task with assignment.
Raises: NotFoundError: If task not found or belongs to another organization.
Successful Response
An agent task representing a unit of work.
Subtask relationships are modeled as has_subtask graph edges in
SurrealDB rather than a flat parent reference. Use TaskStorageService
graph traversal methods to find parents and children.
Attributes: id: SurrealDB record ID (populated by database). organization_id: Owning organization. title: Short description of the task. description: Detailed description. status: Current task status. priority: Priority level (1=urgent, 2=high, 3=normal, 4=low). assigned_to_type_id: Agent type assigned to this task. assigned_to_instance_id: Agent instance working on this task. assigned_to_user_id: User assigned to this task. correlation_bucket_id: Correlation bucket for related events. created_by: User ID of the creator. source: How this task was created.
Status of an agent task on the board.
backlog, assigned, running, review, done 1 <= x <= 4Origin of an agent task.
triage, conversation, manual