Skip to content
Development
Skill

/archive

Archive Jira issues matching a JQL query with jirac

From plugin
jira-commands
4929 skills
Install
$ npx -y skills add mulhamna/jira-commands --skill archive --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/archive

Context preview

The summary Claude sees to decide when to auto-load this skill.

Archive Jira issues matching a JQL query with jirac

SKILL.md

archive.SKILL.md
description: Archive Jira issues matching a JQL query with jirac

Archive all issues matching a JQL query using `jirac`. Archive is destructive — issues are hidden from regular search and become read-only.

Steps: 1. Check that `jirac` is available by running `jirac --version`. If missing, tell the user to install it (`cargo install jira-commands`). 2. Extract or build a JQL query from the user's request that scopes the archive cleanly (project, status, age, resolution). 3. Dry-run the JQL via `jirac issue list --jql '<JQL>'` so the user can see the affected set before archiving. 4. Confirm intent explicitly — archive is irreversible without admin assistance. 5. Run `jirac issue archive --jql '<JQL>'` (omit `--force` to keep the confirmation prompt; add `--force` only after explicit confirmation in agent flows). 6. Report how many issues were archived.

Notes:

  • Archive requires sufficient Jira permissions (typically Project Administrator).
  • Archived issues remain in the database but are hidden from boards, dashboards, and standard JQL searches by default.
  • Prefer scoping by `project`, `resolution`, `updated`, and `status` — broad queries can archive far more than expected.
  • For non-destructive cleanup, consider `bulk-transition` to a "Won't Do" or "Closed" status first.

Examples:

  • "archive done issues older than 6 months in PROJ" → `jirac issue archive --jql 'project = PROJ AND resolution = Done AND updated < -180d'`
  • "archive all 'Won't Do' items in PROJ older than 90 days" → `jirac issue archive --jql 'project = PROJ AND status = "Won''t Do" AND updated < -90d'`
  • "archive released old work" → `jirac issue archive --jql 'project = PROJ AND fixVersion in releasedVersions() AND updated < -365d'`
Read more
Ships withjira-commands

Jira on the command line. jirac is a Jira command-line client written in Rust. It ships as a single binary with no runtime dependencies and runs on macOS, Linux, and Windows.

Get the whole plugin
Stats
49
Stars
14
Forks
Active
Maintenance
Rust
Language
7d ago
Last commit
5mo ago
Created

Repo: mulhamna/jira-commands

Other skills on jira-commands.