comment · diff
git:20260421.511ec27 to git:20261029.f79e226
5 added, 5 removed. Audit B to B.
---
description: Manage Jira issue comments with jirac, including listing existing comments and adding a new Markdown comment to an issue
---
Manage Jira comments using `jirac`.
Steps:
1. Check that `jirac` is available by running `jirac --version`. If it is missing, tell the user to install it with `cargo install jira-commands`.
2. Determine whether the user wants to list comments or add a comment.
For listing comments:
- extract the issue key
- - run `jirac issue comment list <ISSUE-KEY>`
+ - run `jirac issue comment <ISSUE-KEY> list`
For adding a comment:
- extract the issue key
- extract the comment body
- - run `jirac issue comment add <ISSUE-KEY> --body '<COMMENT>'`
+ - run `jirac issue comment <ISSUE-KEY> add --body '<COMMENT>'`
- if the comment is long or already in a file, use `--file <FILE>` instead
3. Show the result clearly.
Examples:
- - "show comments on PROJ-123" → `jirac issue comment list PROJ-123`
- - "add a comment to PROJ-123 saying QA verified this" → `jirac issue comment add PROJ-123 --body 'QA verified this'`
- - "comment on PROJ-456 with the contents of note.md" → `jirac issue comment add PROJ-456 --file note.md`
+ - "show comments on PROJ-123" → `jirac issue comment PROJ-123 list`
+ - "add a comment to PROJ-123 saying QA verified this" → `jirac issue comment PROJ-123 add --body 'QA verified this'`
+ - "comment on PROJ-456 with the contents of note.md" → `jirac issue comment PROJ-456 add --file note.md`