jira_comment
List or add comments on a JIRA issue using the issue key. Use 'add' to post a markdown comment, or 'list' to retrieve existing comments as YAML.
Instructions
Manage JIRA issue comments on key (e.g. PROJ-123). action = "list" returns comments as YAML; action = "add" posts the given body (JFM markdown — GitHub-style, see resource omni-dev://specs/jfm). Supply the body as body (inline) OR body_path (a filesystem path the server reads) — not both. Listed comment authors are Atlassian account IDs — resolve them to display names with jira_user_get. To change the text of an existing comment use jira_comment_edit (it needs the comment id from the list output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | JIRA issue key (e.g., `PROJ-123`). | |
| body | No | Comment body (JFM markdown — see resource `omni-dev://specs/jfm`). Required for `action = "add"`. Mutually exclusive with `body_path`. | |
| limit | No | Maximum number of comments to return. `0` means unlimited. | |
| action | Yes | `list` to fetch comments; `add` to post a new one. | |
| 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`. |