jira_comment_edit
Need to update a JIRA comment? Specify the issue key and comment ID, then set a new body via markdown or file path, and optionally change visibility restrictions.
Instructions
Edit an existing JIRA comment (identified by key + comment_id; get the id from jira_comment with action = "list"). To add a new comment or list comments use jira_comment instead. body is JFM markdown (see resource omni-dev://specs/jfm) and replaces the current comment text; supply it as body (inline) OR body_path (a filesystem path the server reads) — not both. Optional visibility = {type: "group"|"role", value: <name>} updates the restriction. JIRA enforces stricter permissions on edit than on add (often only the original author can edit) — when JIRA refuses, its error message is surfaced verbatim. Returns the updated comment metadata as YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | JIRA issue key (e.g., `PROJ-123`). | |
| body | No | New comment body (JFM markdown — see resource `omni-dev://specs/jfm`). Mutually exclusive with `body_path`; exactly one is required. | |
| body_path | No | Filesystem path the server reads the comment body from, instead of `body`. Prefer this when the body is already on disk. Mutually exclusive with `body`. | |
| comment_id | Yes | Comment ID to update. | |
| visibility | No | Optional visibility restriction. Many JIRA configurations only allow the comment author to change visibility — JIRA's response is surfaced as-is when permission is denied. |