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

> Start an automation when a task is added through an Asana resource.

`onAsanaTaskAdded` matches task `added` events propagated through the selected project or resource.

```ts automations/watch-new-asana-tasks.automation.ts theme={null}
import { automation } from "automate.ax"
import { getTask, onAsanaTaskAdded } from "automate.ax/asana"

export default automation("Load added Asana tasks", () => {
  const event = onAsanaTaskAdded({ resourceId: "project-gid" })
  getTask({ taskId: event.resource.id })
})
```

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

Returns an event signal with `action: "added"`, `resourceType: "task"`, task `resource`, creation time, watched resource ID, and optional parent, user, subtype, and change. It is a compact event, not a full `AsanaTask`; call `getTask` as shown when you need current metadata.
