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

# Update issue

> Update Linear issue assignment, planning, labels, workflow, or content.

`updateIssue` changes selected fields on an issue addressed by UUID or identifier.

```ts automations/update-linear-issue.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { updateIssue } from "automate.ax/linear"

export default automation("Move Linear issue", () => {
  onHttpRequest({ scope: "automation" })
  updateIssue({
    issueId: "ENG-123",
    stateId: "state-uuid",
    assigneeId: "user-uuid",
  })
})
```

`issueId` is required. Optional fields are `assigneeId`, `cycleId`, `description`, `dueDate`, `estimate`, `labelIds`, `addedLabelIds`, `removedLabelIds`, `parentId`, `priority`, `projectId`, `stateId`, `subscriberIds`, `teamId`, `title`, and `account`. Nullable fields accept `null` to clear their value. `labelIds` replaces all labels; added/removed arrays modify the set. `subscriberIds` replaces all subscribers. Priority is 0–4 and estimate is a nonnegative integer or `null`.

Returns the updated `LinearIssue`. Moving teams can make team-specific states, labels, cycles, or estimates invalid.
