atlassian/twg-jira-resolve-merged-work
> Clean up stale or unresolved Jira workitems. Dry-run single items, lists, boards, sprints, epics, or projects by matching Jira keys/titles to merged PRs, repos, Rovo/search-code hits, and assignee activity.
npx skills add https://github.com/atlassian/twg-cli --skill twg-jira-resolve-merged-work
Resolve stale Jira workitems only when merged PR evidence is strong. Plan first;
mutate only after approval.
Use exact command grammar from live twg help / twg help describe; do not
guess board, sprint, transition, workspace, repo, PR, or field syntax.
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg
(macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe (PowerShell), then
tell user to add that directory to PATH. Do not treat auth or command errors as
PATH failures.
Accept one Jira scope:
Default to dry run. Ask before mutating unless the user requests reviewed
execution. Use a bounded window; otherwise inspect recent active/completed
sprint work and nearby PR merge dates.
jira sprint workitems query.jira workitem query.subtasks/blockers, and URL.
epic, or space.
unless the user explicitly allows them.
Compass/components, context queries, and resolved peers.
conventions, PR links, and merge-to-transition lag.
rovo list-apps shows Bitbucket or GitHub connected, use Rovo searchfor keys, titles, PR URLs, branches, and repos. Treat it as discovery until
hydrated through TWG/provider/Jira evidence.
search-code is available, search exact keys first, then distinctivetitle terms in discovered repos. Strong hits are branch names, commit text,
changed files, or symbols; broad fuzzy hits stay weak.
and commenters as weak hints.
discovered repos first; if unknown, infer repos from author/date results.
candidate keys. One PR may satisfy multiple exact keys.
issue metadata.
ambiguity.
open same-key PR, no blockers/subtasks, and target transition exists.
in commit/search-code evidence.
confidence, brief rationale, PR title/URL, merge date, last Jira update,
link/repo proposal, PR title-fix proposal, skipped reason, and verification.
low-confidence rows as executable.
Only mutate after explicit approval of the exact rows or plan.
target.
jira workitem link weblinkfor PR/repo URLs after querying links and verifying help. Do not claim this
creates native development-panel links.
twg bitbucket can readthe PR, write access is verified, the PR is confidently tied to the item, and
the user approved it. For GitHub, update only when an authenticated write tool
is available and access is verified; otherwise skip with the reason.
statuses, URLs, and failed rows.
Do not transition medium-confidence items automatically. Do not transition
declined/superseded PRs or rows supported only by same author, same repo, or
fuzzy similarity.
Lead with the decision summary:
Then provide the dry-run table and exact approval question. Include URLs or
stable IDs for every workitem and PR used as evidence.
Take atlassian/twg-jira-resolve-merged-work from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.