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

> Update the content or pinned state of an editable Asana comment.

`updateTaskComment` edits one user-comment story.

```ts automations/update-asana-comment.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { updateTaskComment } from "automate.ax/asana"

export default automation("Update Asana comment", () => {
  onHttpRequest({ scope: "automation" })
  updateTaskComment({
    storyId: "story-gid",
    text: "Approved.",
    isPinned: false,
  })
})
```

`storyId` is required. Provide at least one of `text`, `htmlText`, or `isPinned`, and do not provide both text formats. Optional `account` defaults to the project binding.

Returns the updated `AsanaStory`. Asana only permits edits to eligible user comments, generally comments owned by the connected user; system stories cannot be edited.
