> ## 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 initiative update event

> Run an automation when Linear reports initiative update changes.

`linear.onInitiativeUpdateEvent` handles initiative update changes in the connected Linear workspace.

```ts automations/watch-linear-initiative-update.automation.ts theme={null}
import { automation } from "automate.ax"
import { linear } from "automate.ax/linear"

export default automation("On initiative update event", () => {
  const event = linear.onInitiativeUpdateEvent()
  // Route the Linear initiative update by action.
})
```

Optional static `account` defaults to the project binding. Linear webhook triggers require an OAuth connection with read access. The workspace can't change at runtime.

## Trigger data

Returns a `Signal<LinearInitiativeUpdateTrigger>`:

```ts theme={null}
type LinearInitiativeUpdateTrigger = LinearInitiativeUpdate & {
  event: LinearWebhookEvent<
    LinearInitiativeUpdate,
    "create" | "update" | "remove"
  >
}

interface LinearInitiativeUpdate {
  archivedAt?: string | null
  body: string
  createdAt: string
  diffMarkdown?: string | null
  editedAt: string
  health: string
  id: string
  initiativeId: string
  slugId: string
  updatedAt: string
  url?: string | null
  userId: string
}

interface LinearWebhookEvent<TData, TAction extends string> {
  action: TAction
  actor?: LinearActor | null
  createdAt: string
  data: TData
  organizationId: string
  type: "InitiativeUpdate"
  updatedFrom?: Record<string, JSONValue> | null
  url?: string | null
  webhookId: string
  webhookTimestamp: number
}

interface LinearActor {
  email?: string
  id?: string
  name?: string
  type?: string
  url?: string
}
```

Initiative updates carry the Markdown body, health snapshot, computed diff, author, and parent initiative IDs. Resource objects and the webhook envelope retain extra Linear fields.
