/odh-jira:jira-workitem-commentfrom odh-jira
Adds comments to Jira tickets via acli CLI, supporting plain text and rich Atlassian Document Format (ADF) with code blocks, lists, mentions, and links.
Ships in odh-jira. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub opendatahub-io/ai-helpers --plugin odh-jiraAdd comments to Jira tickets using the acli CLI with support for both simple text and rich Atlassian Document Format (ADF).
acli must be installed and authenticated (acli jira auth)Before proceeding, verify that acli is installed and authenticated by invoking the acli-setup-check skill:
/acli-setup-check
If the setup check fails, stop execution and guide the user to fix the issue.
Ticket Key:
[A-Z]+-\d+Comment Content:
Comment Type:
For plain text comments, write the comment text to a temporary file and use acli to create the comment:
# Validate ticket key format (PROJECT-NUMBER)
TICKET_KEY="<ticket-key-from-step-2>"
if [[ ! "$TICKET_KEY" =~ ^[A-Z]+-[0-9]+$ ]]; then
echo "Error: Invalid ticket key format. Expected PROJECT-NUMBER (e.g., RHAI-1234)"
exit 1
fi
# Write comment to temp file (uses system temp directory)
TMPFILE=$(mktemp -t acli-comment-XXXX.txt)
cat > "$TMPFILE" << 'EOF'
<comment text goes here>
EOF
# Create the comment with validated ticket key
acli jira workitem comment create --key "$TICKET_KEY" --body-file "$TMPFILE"
# Clean up
rm -f "$TMPFILE"
For comments that need rich formatting (code blocks, lists, mentions, links), construct an ADF JSON structure.
Basic text with formatting:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{"type": "text", "text": "This is "},
{"type": "text", "text": "bold text", "marks": [{"type": "strong"}]},
{"type": "text", "text": " and "},
{"type": "text", "text": "italic text", "marks": [{"type": "em"}]}
]
}
]
}
Code block:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{"type": "text", "text": "Here's the fix:"}
]
},
{
"type": "codeBlock",
"attrs": {"language": "python"},
"content": [
{
"type": "text",
"text": "def hello():\n print('Hello, world!')"
}
]
}
]
}
Bullet list:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "bulletList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [{"type": "text", "text": "First item"}]
}
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [{"type": "text", "text": "Second item"}]
}
]
}
]
}
]
}
Link:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{"type": "text", "text": "See "},
{
"type": "text",
"text": "the documentation",
"marks": [
{
"type": "link",
"attrs": {"href": "https://example.com/docs"}
}
]
}
]
}
]
}
User mention:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "mention",
"attrs": {
"id": "557058:12345678-abcd-1234-abcd-123456789012",
"text": "@code-samurai"
}
},
{"type": "text", "text": " please review"}
]
}
]
}
Write the ADF JSON to a temporary file and create the comment:
# Validate ticket key format (PROJECT-NUMBER)
TICKET_KEY="<ticket-key-from-step-2>"
if [[ ! "$TICKET_KEY" =~ ^[A-Z]+-[0-9]+$ ]]; then
echo "Error: Invalid ticket key format. Expected PROJECT-NUMBER (e.g., RHAI-1234)"
exit 1
fi
# Write ADF JSON to temp file (uses system temp directory)
TMPFILE=$(mktemp -t acli-comment-XXXX.json)
cat > "$TMPFILE" << 'EOF'
{
"version": 1,
"type": "doc",
"content": [...]
}
EOF
# Create comment with ADF and validated ticket key
acli jira workitem comment create --key "$TICKET_KEY" --body-file "$TMPFILE"
# Clean up
rm -f "$TMPFILE"
For important or lengthy comments, show a preview to the user:
I'll add this comment to <TICKET-KEY>:
---
<comment preview>
---
Should I proceed?
Wait for confirmation before creating the comment.
After successfully creating the comment, report to the user:
Comment added to <TICKET-KEY>
View: https://redhat.atlassian.net/browse/<TICKET-KEY>
Use ADF (Step 3b) when the comment includes:
Use simple text (Step 3a) for:
acli-setup-check skillacli-setup-check skillUser: Add a comment to RHAI-1234 saying the fix is ready for review
Assistant: [Creates simple text comment]
Comment added to RHAI-1234
View: https://redhat.atlassian.net/browse/RHAI-1234
User: Comment on RHAI-5678 with this error message: [paste error]
Assistant: [Creates ADF comment with code block]
Comment added to RHAI-5678 with formatted code block
View: https://redhat.atlassian.net/browse/RHAI-5678
User: Add a status update to RHAI-910 with these action items:
- Fix merged to main
- QA testing in progress
- Deployment scheduled for Friday
Assistant: [Creates ADF comment with bullet list]
Comment added to RHAI-910
View: https://redhat.atlassian.net/browse/RHAI-910
13 skills in this plugin
/acli-setup-checkVerify acli installation and authentication. Checks if acli is installed, authenticated to Jira, and can query projects. Use when troubleshooting acli issues or setting up acli for the first time./ai-bug-fix-triageTriage JIRA bugs against repository code to classify AI fixability. Use when reviewing a backlog of bugs to determine which ones an AI agent can fix./aipcc-cve-reportGenerate CVE remediation instructions for the user's target RHAI product release or content channel from Jira JQL, ticket keys or a ticket description. Verify fixed packages in the RHAI package index and a matching RHAI base image (RHAIBI), or prepare a focused AIPCC build-request prompt./jira-activitySummarize Jira ticket activity, including child tickets, to detect stale tickets in the backlog. Use when user asks to review one or more Jira tickets to determine if they are being worked on./jira-aipcc-createCreate AIPCC-org Jira issues in the RHAI project. Infers summary, description, type, and component from conversation context, confirms with the user before creating. Use when the user wants to file a new AIPCC Jira issue./jira-sprint-summaryGenerate comprehensive sprint summaries by analyzing JIRA sprint data, including issue breakdown, progress metrics, and team performance insights.3 plugins in one repository ship this exact skill · first indexed Sep 26, 2026
Other plugins' skills for the same job