Skip to content

subtasks.create

Type: mutation Module: convex/subtasks.ts

{
taskId: Id<"tasks">,
title: string,
description: string /* optional */,
prompt: string /* optional */,
estimatedFiles: number /* optional */,
complexityScore: number /* optional */,
estimatedDurationMs: number /* optional */,
allowedFiles: string /* optional */[],
isPausePoint: boolean /* optional */,
}

Create a new subtask under a parent task. Automatically determines order and updates the parent task’s subtask count. @param taskId - Parent task @param title - Subtask title