/enterprise-collaboration-skills:jira-comments-and-tracking-automationfrom enterprise-collaboration-skills
Guides writing helpful Jira comments with context and decision rationale, choosing between comments and field updates, and building CI/CD automation for status and comment updates without spam.
Ships in enterprise-collaboration-skills. 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.
Comments are where a ticket's narrative lives — why a decision was made, what was tried and ruled out, what a deploy actually shipped — but that narrative is only useful if it's written for the next reader, not as a stream-of-consciousness log for the author. Comments are also the easiest thing to automate (CI/CD posting a deploy notification, a bot posting a build-failure link) and the easiest thing to over-automate into noise that trains people to stop reading them. This skill covers writing comments that hold up months later, choosing comment vs. field update for a given piece of state, and building CI/CD-driven comment/ status automation that adds signal instead of drowning it. It assumes the ticket itself is already well-formed — see jira-ticket-best-practices-and-workflow for writing the ticket and moving it through its workflow. When the decision or context is significant enough to outlive the ticket, it belongs in Confluence, not buried in a comment thread — see confluence-page-authoring-and-governance.
${JIRA_BASE_URL},
${JIRA_API_TOKEN} (Cloud API token or Data Center PAT), and a service
account with "Add Comments" permission scoped to the relevant
project(s) for automation use cases — do not reuse a personal token
for a CI pipeline.${JIRA_BASE_URL} and a stored secret (${JIRA_API_TOKEN}) injected
as a masked pipeline variable, never committed to the repo.Decide comment vs. field update with one question: "does anything automated (a dashboard, a report, another workflow) need to read this value?" If yes, it's a field (status, priority, fix version, a custom "root cause" field) — comments are free text that reports and automations generally can't reliably parse. If it's narrative context a human needs to understand why a field has the value it has, that's a comment.
Structure a decision comment so it stands alone:
Promote durable decisions out of the comment thread. If a decision materially changes scope, approach, or acceptance criteria, also update the ticket's description (or a dedicated "Decision Log" Confluence page linked from the ticket) — a comment thread that is the only record of an architectural decision is one accidental thread-collapse or ticket-archival away from being lost.
Post a comment via the REST API:
POST /rest/api/3/issue/AUTH-2231/comment
Content-Type: application/json
Authorization: Basic base64(${JIRA_USER_EMAIL}:${JIRA_API_TOKEN})
{
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Decision: rolling back the EU IdP config change from AUTH-2231 instead of forward-fixing. Root cause was a clock-skew issue between the IdP and auth-service that forward-fixing would take longer to validate than reverting. See PR #482 for the revert and the incident notes at "
},
{
"type": "text",
"text": "the linked Confluence page",
"marks": [{ "type": "link", "attrs": { "href": "${CONFLUENCE_BASE_URL}/wiki/spaces/ENG/pages/123456" } }]
},
{ "type": "text", "text": " for full timeline." }
]
}
]
}
}
A successful response is 201 Created with the new comment's id —
keep it if you need to edit that same comment later instead of
posting a new one (see step 6).
Restrict visibility when the audience isn't everyone with ticket access (e.g. an internal-only diagnostic on a customer-facing service-desk ticket):
{
"body": { "type": "doc", "version": 1, "content": [ /* ... */ ] },
"visibility": {
"type": "role",
"value": "Administrators"
}
}
Confirm the exact visibility mechanism (role vs. group, and which
role/group names exist) per instance — this varies between Jira
Service Management projects and plain software projects.
Design CI/CD comment automation to update, not append. For a pipeline that reports build status repeatedly on the same ticket (e.g. lint → build → test → deploy), post one comment at the meaningful milestone (deploy) rather than one per stage, or edit a single tracked comment in place:
PUT /rest/api/3/issue/AUTH-2231/comment/{commentId}
Content-Type: application/json
{
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{ "type": "text", "text": "Deploy status: v2.14.1 deployed to production at 2026-07-28T14:32:00Z. Commit a91fbc2. Pipeline run: " },
{ "type": "text", "text": "#4821", "marks": [{ "type": "link", "attrs": { "href": "https://ci.example.com/runs/4821" } }] }
]
}
]
}
}
Post a genuinely useful deploy notification, not a log dump. Include: what shipped (version/commit), where (environment), when (timestamp with timezone), and a link back to the pipeline run and the diff/PR — not the raw console output of the build. If the ticket needs a status change too (e.g. "In Review" → "Done" once deployed to production and verified), do that as a field transition alongside the comment, not instead of it.
Prefer the platform's native automation for common triggers.
Jira Automation rules ("when PR merged, transition to Done and
comment with the merge commit") or a Jira/Bitbucket/GitHub smart
commit integration often cover the common cases without custom REST
code, and are easier for a team to audit/maintain than a bespoke
script. Reach for a custom POST .../comment call when the trigger
or payload shape isn't something the built-in automation supports.
@mention) only when an action is required from them
specifically — not as a broadcast; overuse trains people to ignore
mentions.Symptom: An important architectural decision ("we're deprioritizing the retry-queue approach in favor of a synchronous call because X") exists only as a mid-thread comment. Months later, someone reverses the decision because the rationale isn't visible anywhere except a buried comment on a closed ticket. Fix: Promote decisions with lasting consequence into the ticket description or a linked Confluence decision record (see confluence-page-authoring-and-governance), and treat the comment as the pointer to it, not the sole copy.
Symptom: A CI pipeline posts a new comment for every stage (lint ✅, build ✅, unit tests ✅, integration tests ✅...) on every commit, so a ticket accumulates dozens of near-identical automated comments and humans stop reading the comment feed entirely — including the one comment that actually mattered. Fix: Post (or edit in place) one comment at a meaningful milestone — typically deploy/release — and link out to the full pipeline run for detail, per step 6 above.
Symptom: An automated comment dumps a full stack trace or raw log
output into the ticket, including internal hostnames/paths, and the
ticket happens to be visible on a customer-facing service-desk portal.
Fix: Set visibility on sensitive automated comments (step 5), and
treat "does this project have an external-facing portal?" as a
standing question when designing any automation that posts to it.
Symptom: A ticket is transitioned to "Done" by an automation the moment a PR merges, before the change is actually deployed/verified — so "Done" stops meaning "done" and downstream reporting (release notes, deploy tracking) becomes unreliable. Fix: Gate the Done transition on the actual completion signal (deploy succeeded, verified in the target environment), not on a proxy event (PR merged) that only correlates with completion.
Symptom: A shared/admin API token used for comment automation gets rotated or revoked (e.g. during an offboarding), and every pipeline using it silently starts failing to post comments with no clear owner to page. Fix: Use a dedicated service account/token per integration, scoped to only the needed permission and project, so failures are attributable and rotations don't have unknown blast radius.
Before — noisy, unhelpful automated comments on REL-990:
[bot] Build #4801 started
[bot] Lint passed
[bot] Build #4801 succeeded
[bot] Unit tests passed (312/312)
[bot] Integration tests passed (48/48)
[bot] Build #4801 artifact published
Six near-identical lines, no version number, no environment, no link back to anything useful — and this repeats for every commit.
After — a single, edited-in-place deploy comment:
Deploy status: v2.14.1 deployed to production (eu-west-1) at
2026-07-28T14:32:00Z.
Commit: a91fbc2 ("fix: correct clock-skew tolerance in SSO token
validation", PR #482)
Pipeline run: #4821 (https://ci.example.com/runs/4821)
Verification: smoke test suite green post-deploy; EU login error rate
back to baseline as of 14:40 UTC.
Posting/updating that comment via the API:
PUT /rest/api/3/issue/AUTH-2231/comment/10432
Content-Type: application/json
Authorization: Basic base64(${JIRA_USER_EMAIL}:${JIRA_API_TOKEN})
{
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{ "type": "text", "text": "Deploy status: v2.14.1 deployed to production (eu-west-1) at 2026-07-28T14:32:00Z. Commit a91fbc2 (\"fix: correct clock-skew tolerance in SSO token validation\", PR #482). Pipeline run #4821. Smoke tests green; EU login error rate back to baseline as of 14:40 UTC." }
]
}
]
}
}
Followed by the actual status transition (once verified, not before) as covered in jira-ticket-best-practices-and-workflow:
{ "transition": { "id": "51" } }
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/confluence-page-authoring-and-governanceGuides authoring well-structured Confluence pages (clear heading hierarchy, table of contents, templates for runbooks/design docs/ postmortems), organizing them within a space, keeping version/page history discipline, and labeling/linking for discoverability — plus the underlying Confluence REST API shape (`POST /wiki/rest/api/content`) for creating/updating pages programmatically. Use when the user asks to "create a Confluence page", "update a Confluence page", "document a runbook in Confluence", "write a design doc", "write a postmortem", "organize this space", or "why can't anyone find this page".
/jira-ticket-best-practices-and-workflowGuides writing well-formed Jira issues (clear title, reproduction steps or acceptance criteria, correct issue type/priority/labels/components), disciplined status-workflow movement (To Do → In Progress → In Review → Done, avoiding stale or prematurely closed tickets), and linking related issues/epics — plus the underlying Jira REST API shape (`POST /rest/api/3/issue`, transitions, issue links) for doing this programmatically. Use when the user asks to "write a Jira ticket", "file a bug report", "create a user story", "update ticket status", "move a ticket to In Progress/Done", "link this to the epic", or "review whether this ticket is ready to work on".
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin enterprise-collaboration-skillsOther plugins' skills for the same job