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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List subtasks

> List the direct subtasks of an Asana task.

`listSubtasks` returns only immediate children; call it again for deeper levels.

```ts automations/list-asana-subtasks.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { listSubtasks } from "automate.ax/asana"

export default automation("List Asana subtasks", () => {
  onHttpRequest({ scope: "automation" })
  listSubtasks({ taskId: "parent-task-gid" })
})
```

`taskId` is required. `limit` is 1–100 and defaults to `100`; `offset` continues pagination; optional `account` defaults to the project binding.

Returns `Signal<{ tasks: AsanaTask[]; pageInfo: { nextOffset?: string } }>`.
