jira_comment_edit
Edit an existing JIRA comment by specifying issue key and comment ID, with optional visibility restriction. Updates the comment body via inline text or file path.
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. |