> ## 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.

# On Asana task changed

> Start an automation when a task field changes within an Asana resource.

`onAsanaTaskChanged` matches all task `changed` events, including completion changes.

```ts automations/watch-asana-task-changes.automation.ts theme={null}
import { automation } from "automate.ax"
import { onAsanaTaskChanged } from "automate.ax/asana"

export default automation("Watch Asana task changes", () => {
  onAsanaTaskChanged({ resourceId: "project-gid" })
})
```

`resourceId` is required. Optional static `account` defaults to the project binding.

Returns an event signal with `action: "changed"`, `resourceType: "task"`, task reference, and optional field-level `change`. The payload is compact; fetch the task for its complete current state. Completed events also match [On Asana task completed](/reference/integrations/asana/triggers/on-task-completed).
