plugins/lisa-agy/skills/jira-sync/SKILL.md
Syncs plan progress to a linked JIRA ticket. Posts plan contents, progress updates, branch links, and PR links at key milestones. Use this skill throughout the plan lifecycle to keep tickets in sync.
npx skillsauth add codyswanngt/lisa jira-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
All Atlassian operations in this skill go through lisa:atlassian-access. Do not call MCP tools or acli directly.
Sync current plan progress to JIRA ticket: $ARGUMENTS
If no argument provided, search for a ticket URL in the active plan file (most recently modified .md in plans/).
Optional arguments include pr_url=<url> for the live pull request and merge_sha=<sha> once merged.
$ARGUMENTS or extract from the active plan filelisa:atlassian-access via the Skill tool with operation: read-ticket key: <TICKET-ID>Based on the current milestone:
| Milestone | Content to Post | |-----------|-----------------| | Plan created | Plan summary, branch name, link to PR (if draft exists) | | Implementation in progress | Task completion summary (X of Y tasks done), any blockers | | PR ready | PR link, summary of changes, test results | | PR merged | Final summary, suggest moving ticket to "Done" |
Before adding a comment, check for an existing milestone comment to avoid duplicates (idempotency):
lisa:atlassian-access with operation: search-issues jql: "..." or by reading the ticket's comments. Look for a comment whose body contains a stable milestone marker (e.g., the heading ## Plan Created, ## Implementation in Progress, ## PR Ready, or ## PR Merged) that matches the current milestone.lisa:atlassian-access with operation: comment key: <TICKET-ID> body: "...".When $ARGUMENTS includes pr_url=<url> for PR ready or PR merged, ensure the JIRA ticket has a durable ticket -> PR link:
lisa:atlassian-access; verify by re-reading the ticket's remote links / development metadata.[lisa-pr-link] and include the milestone (pr-ready or pr-merged) and merge SHA when available.[lisa-pr-link] comment for the same PR URL, and update/skip it instead of appending duplicates. If the current access layer cannot update comments in place, skip when an identical managed comment already exists and otherwise add exactly one replacement comment with the stable marker.The PR body/branch issue key is the PR -> ticket side. This step is the required ticket -> PR side.
Based on the milestone, suggest (but don't automatically perform) a status transition:
| Milestone | Suggested Status | |-----------|-----------------| | Plan created | "In Progress" | | PR ready | "In Review" | | PR merged | "Done" |
--rollup)When invoked with --rollup, this skill derives a parent/container ticket's status from the roll-up of its children (Stories under an Epic; Sub-tasks under a Story/Task) instead of posting a milestone update on a leaf. This implements the JIRA child/subtask-status arm of the Parent status rollup (the state machine) section of the leaf-only-lifecycle rule — cite that rule, do not restate the policy.
Resolve the child set the same way lisa:jira-read-ticket does — the native Epic → Story → Sub-task hierarchy (Epic link / parent field for Stories, the subtask relationship for Sub-tasks), each with its current status. Fetch via lisa:atlassian-access (operation: read-ticket / search-issues with the parent's "Epic Link" = <KEY> or parent = <KEY> JQL). If the ticket has no children it is a leaf — rollup is N/A; behave as a normal milestone sync.
Evaluate the required children over the env ladder in-progress < dev < staging < production (the ordered keys of the JIRA env-keyed done map, e.g. On Dev < On Stg < Done) and take the first match (canonical roles from config-resolution; the JIRA status map defaults to Blocked, In Progress, Code Review, env-keyed done):
| If among the required child leaves… | Derived parent role | JIRA status |
|---|---|---|
| any child is blocked | blocked | Blocked |
| else every required child has shipped to some env (each at a done-map value, e.g. On Dev/On Stg/Done) | done[min-env] | the least-advanced env status among them (all On Stg → On Stg; mixed On Dev+On Stg → On Dev; all production → Done) |
| else any child has started (In Progress / Code Review, or shipped to an env while a sibling has not) | claimed | In Progress |
| else (children exist, none started) | — | unchanged — parent keeps its non-ready container status |
Blocked on the parent even while siblings progress.leaf-only-lifecycle Terminal native closure) only when the resolved env is the production Done, never at On Dev/On Stg.ready is leaf-only. Rollup only moves the parent between non-ready container statuses.review is optional for JIRA (config-resolution) — a project that omits Code Review keeps the parent in In Progress until it shifts to an env; skip the intermediate review hop rather than forcing a non-existent status (a leaf-only-lifecycle "vendor support varies" note).Single-environment collapse (this repo). The env rungs resolve via the env-keyed done logic in config-resolution. In this repo deploy.branches declares only production: main, so done collapses to a single status, the only env rung is production, and the lifecycle is Ready → In Progress → Code Review → Done with no dev/staging promotion hops; the rollup never resolves a dev or staging done. Multi-environment projects keep the env-keyed map and roll a parent up to intermediate env statuses (On Dev/On Stg).
Apply the derived status (only when it differs from the parent's current status) via lisa:atlassian-access operation: transition, and post an idempotent rollup comment naming the derived state and the child tally. Safe default: if the derived terminal cannot be resolved (ambiguous required-set or unresolvable env done), do not guess — post the derived suggestion as a comment and leave the parent's status untouched.
--rollup parent derivation (Step 5), which transitions a parent's status per the leaf-only-lifecycle rule — never a leaf's, and never to the build-ready status.leaf-only-lifecycle rule's state machine; this skill does not restate the policy.Sync the ticket now.
documentation
Onboard a user to the project via its LLM Wiki. Interviews the user about themselves in relation to the project, captures that to project-scoped memory only, then gives a guided tour of what the project is and sample questions they can ask. Use when someone is new to the project or asks to be onboarded. Read-mostly — it does not open PRs or write PII into the wiki.
documentation
Migrate an existing, hand-rolled wiki implementation onto the lisa-wiki kernel — phased and compatibility-first, with a strict no-loss guarantee. Use when adopting lisa-wiki in a repo that already has its own wiki/, ingest skills, docs, or roles. Renaming things into the canonical shape is fine; losing functionality or data is not. Ends by running /doctor.
development
Health-check the LLM Wiki. Reports orphan pages, contradictions, stale claims, broken internal links, missing index/log coverage, structure-manifest violations, and secret/tenant leaks. Use periodically or before hardening a wiki. Read-only — it reports findings, it does not fix them.
testing
Ingest source material into the LLM Wiki. With an argument (URL, file path, or prompt) it ingests that one source; with no argument it runs a full ingest across every enabled non-external-write source. Routes to the right connector, then runs the ordered pipeline (source note → synthesis → index → log → verify → state → commit/PR). Use whenever new knowledge should enter the wiki.