> ## 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 task updated

> Run an automation when a task is updated.

`clickUp.onTaskUpdated` starts an automation when a task is updated.

```ts automations/clickup-on-task-updated.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { clickUp } from "automate.ax/clickup"

export default automation("On task updated", () => {
  const event = clickUp.onTaskUpdated({ workspaceId: "workspace-id" })
  sendEmail({ subject: "On task updated", text: event.event })
})
```

Provide the ClickUp `workspaceId`. Optional static `account` defaults to the project's ClickUp binding. Automate.ax maintains one signed Workspace webhook and updates its provider event set as triggers change.

## Trigger data

Returns a `Signal<ClickUpWebhookEvent>`. `event` is `taskUpdated`; the payload includes `webhookId`, `historyItems`, and applicable `taskId`, `listId`, `folderId`, `spaceId`, `goalId`, or `keyResultId`. Each history item includes its stable ID, date, type, optional field, before and after values, and user.
