Edit your own comment (requires version)
update_commentEdit your own comment (requires version).
Only the comment's author may edit it (an agent: the owner of its token). Send the full new body and the version you read; stale → 409 version_conflict. Imported comments whose Jira author was not matched cannot be edited. No new notification is sent.
Edit a comment's text: only its author may (for an agent, the user who owns the token) — others get 403 not_author; an imported comment whose Jira author was not matched cannot be edited (403 import_author_locked). Pass the comment's seq and version from list_comments and the COMPLETE new body; attachments (optional) is the complete new list. Edit only when the user asks or to correct your own comment; no new email is sent. 409 comment_deleted = it was deleted — do not retry. Colour and highlighter in the body: see add_comment.
WRITE: version = from your latest read (get_issue, list_comments, list_sprints, get_doc, read_file). 409 version_conflict (details.current, details.current_version): re-read, re-apply your change, retry — never overwrite blindly; when the changes disagree, ask the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | The comment number (`seq`, as in `#c-3`). | |
| body | Yes | ||
| reason | No | Spec D144: why you make this change (≤ 200 characters). Optional, but give it when you act as an agent account — it is shown in the agent's run log ("moved KJ-12 To Do → In Progress because <reason>"). board-mcp records it in `agent.run`; board-core / board-files accept it and ignore it (it never changes the file, the version or the history). | |
| version | Yes | Optimistic-lock version of the file; +1 on every write. Every write must send the version it read. | |
| issue_key | Yes | Issue key `{PROJECT}-{n}`, e.g. `KJ-101`. | |
| attachments | No | The complete new list; omitted = unchanged. | |
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. |