Skip to content

jira issue comment edit

  • Usage: jira issue comment edit KEY COMMENT_ID [flags]

Replace a comment body and optionally adjust its visibility. Use comment list first when you need to find the comment ID.

The replacement body runs through the validate-and-encode ADF pipeline before submission. --dry-run previews the validated body and visibility change without contacting Jira.

Input

--json-input <FILE>

New body as native ADF JSON file (canonical for agents)

Accepts a file.

--markdown <MARKDOWN>

New body as Markdown

--markdown-file <FILE>

Read the Markdown body from a file; - reads stdin

Accepts a file.

Visibility

--clear-visibility

Remove any existing visibility restriction

--visibility-group <GROUP>

Replace visibility with a Jira group

--visibility-role <ROLE>

Replace visibility with a Jira role

Safety

--dry-run

Preview without calling Jira

Examples

jira issue comment edit PROJ-123 10042 --markdown "Updated: rollout complete." # (1)!
jira issue comment edit PROJ-123 10042 --markdown "Now public." --clear-visibility # (2)!
jira issue comment edit PROJ-123 10042 --markdown "Draft update." --dry-run # (3)!
  1. Replace a comment body with new Markdown
  2. Remove a comment's visibility restriction
  3. Preview a comment edit