Create, update, convert or reorganize many Jira tickets at once (initiatives, epics, stories, bugs, sub-tasks) after one approval, with deadline-based sprint suggestions. Also audits open tickets against the team rules (parent, priority, type and phase labels, story points, assignee, sprint leftovers, blocked links) and reviews priority consistency. Use for bulk creation from a list or file, to audit or clean up Jira tickets, or to review the priorities of an epic, sprint or list of tickets.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Jira Batch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/piheros-jira-batch)
---
name: jira-batch
description: Create, update, convert or reorganize many Jira tickets at once (initiatives, epics, stories, bugs, sub-tasks) after one approval, with deadline-based sprint suggestions. Also audits open tickets against the team rules (parent, priority, type and phase labels, story points, assignee, sprint leftovers, blocked links) and reviews priority consistency. Use for bulk creation from a list or file, to audit or clean up Jira tickets, or to review the priorities of an epic, sprint or list of tickets.
---
# Jira batch
Process batches of Jira tickets (Initiative › Epic › Story / Bug ›
Sub-task) through a natural exchange, following the team conventions in
`references/jira-conventions.md`. Three modes: **batch** (create, update,
convert), **compliance audit** and **priority review**.
**Hard gate:** never create or edit tickets before showing a recap and
getting an explicit "yes".
## Principles
- **Language:** ticket content and the recap in English (or the team's
agreed language).
- **Batch-first:** always process as a batch, grouped by hierarchy.
- **No tasks:** technical, operational or study work is a non-functional
story; a defect is a bug. A "task" in the input is converted to one of the
two (say so in the recap).
- **Split and deduplicate:** propose splits for oversized or vague items;
search duplicates with JQL. An item already covered becomes a comment on
the existing ticket.
- **Delegate the content rules:** epics follow `jira-epic`, stories and
sub-tasks `jira-user-story`, bugs `jira-bug`; estimate reviews go to
`jira-story-points-review`.
- **The user decides:** never assign a sprint, change a status or cancel a
ticket automatically.
## Rules per type
| Type | Rule |
|---|---|
| All | No duplicate; **parent mandatory**; **priority chosen**, never Low by default |
| Initiative | One per product or project; description Context / Requester / Goal / Scope / Success criteria |
| Epic | Noun-phrase title; parent initiative, assignee, priority, one type label, one phase label; no points, no dates |
| Story | Parent epic, priority, exactly one `SCOPE` / `BUILD` / `RUN` label; assignee, points (1-8) and sprint if known, otherwise `to set in sprint planning` |
| Bug | Title = symptom, never the fix; parent epic (or "Run & maintenance"); priority decided at creation; points and label optional |
| Sub-task | Optional; parent = story or bug; never points; closed, moved or canceled when the parent closes |
| Sprint | Every sprint ticket estimated and assigned after sprint planning; leftovers go to the current sprint or explicitly back to the backlog |
| Canceled / closed | Canceled: not counted, leave alone. Closed: counted, no need to revisit |
## Batch mode
### 1. Analyze the input
Accepts a text list, a file (CSV, Excel, Markdown), existing keys or raw
workshop notes. Identify each item and its type with the decision tree in
`references/jira-conventions.md`; confirm unclear types. Search duplicates.
Detect implicit parent-child relations.
### 2. Structure the hierarchy
```
Initiative A
├── Epic A.1
│ ├── Story A.1.1
│ └── Story A.1.2
└── Epic A.2
├── Story A.2.1 (non-functional)
│ └── Sub-task A.2.1.a
└── Bug A.2.2
```
### 3. Deadlines and sprint
The reference sprint can be a different board from the one the tickets are
created in (for example a team board fed by filters across several
projects): ask which board is the reference if unclear.
1. Find the active sprint (`sprint in openSprints() AND project = <KEY>`).
2. **Ask the user to confirm or correct its end date.**
3. A ticket whose deadline is at most one week after the confirmed sprint end
is a candidate for the current sprint.
4. Show the candidates (`Ticket | Deadline | Reason`) and let the user decide.
### 4. Write the content
- **Initiatives:** Context (why this product, why now) / Requester / Goal
(end state in one sentence) / Scope (in / out) / Success criteria
(measurable).
- **Epics, stories, bugs, sub-tasks:** the templates and field rules of
`jira-epic`, `jira-user-story` and `jira-bug`.
- Ask everything uncertain in one message.
### 5. Approval gate
Recap grouped by hierarchy, following `references/template.md`: one table
per type (initiatives, epics, stories, bugs, sub-tasks) with parent,
priority, labels, points, assignee and sprint. Values left to sprint
planning are written `to set in sprint planning`. Do not ask for the "yes"
while a ticket breaks the rules (missing parent or priority, zero or several
type labels, story above 8 points, title off-format, points on a sub-task).
### 6. Ordered creation
1. Initiatives → keys
2. Epics (under initiatives) → keys
3. Stories and bugs (under epics)
4. Sub-tasks (under their story or bug)
5. Approved links (blocks, relates to, discovered while testing)
6. Approved sprint assignments
7. Re-read created tickets, check the rules, fix fields that were not taken
Then show `Key | Type | Title | Parent | Sprint` with clickable keys. On
partial failure, list created vs failed and offer to retry the failures.
## Compliance audit mode
When the user asks to check, clean up or bring tickets into line:
1. **Scope:** by default the user's open tickets (`assignee = currentUser()`,
and for epics also `reporter = currentUser()`). If the user gives keys,
handle **only** those keys; never touch other people's tickets. Exclude
canceled tickets; closed ones only if asked.
2. **Checks** (adapt the canceled status name to the site):
- Stories without a type label:
`issuetype = Story AND statusCategory != Done AND (labels is EMPTY OR labels not in (SCOPE, BUILD, RUN))`;
also check ticket by ticket for **several** type labels (JQL cannot).
- Stories and bugs without parent: `... AND parent is EMPTY`.
- Priority missing; Low to reconfirm (ask, it is not an error);
inconsistent priorities: see priority review mode.
- Story points off-rule: above 8, values outside 1-2-3-5-8, points on
epics or sub-tasks. For a full estimate review, suggest
`jira-story-points-review`.
- Open tickets of type Task: convert to a non-functional story (or bug).
- Titles off `[CODE] Layer - Title`: propose the new title (code from the
initiative, layer from the content, old prefixes or suffixes removed)
and the removal of product-name labels. Never rename an initiative;
unknown code → ask.
- Empty component: propose from the epic and siblings (existing values
only; if the list is empty, say so and point to a project admin).
- Contributors: propose only people proven by linked tickets or named in
the description.
- Blocked links: On Hold with all blockers closed, or "is blocked by" an
open ticket without being On Hold → comment (why, who unblocks), status
unchanged without approval.
- Epics: assignee, priority, type and phase labels, parent initiative.
- Current sprint tickets with no assignee or no points.
- Canceled or closed epic with open children: propose an active epic for
the children.
- Stale tickets (old, no activity, no assignee or description): propose to
cancel them as a batch with an "obsolete" comment, only after approval.
- Sprint leftovers:
`sprint in closedSprints() AND sprint not in openSprints() AND statusCategory != Done`
→ current sprint or backlog? Always let the user choose.
- Do not comment on sprint names; only sprint membership matters.
3. **Gap table** grouped by rule (`Key | Type | Status | Missing | Proposed fix`),
values inferred from the ticket, its epic and siblings, marked
`(proposed)`. Example in `references/example.md`.
4. **After the "yes":** edit ticket by ticket (add labels without
overwriting, parent, sprint, points, assignee), re-read each one and show
`Key | Fixed | Still missing`, with the reason for anything not fixed.
## Priority review mode
When the user asks to review, harmonize or fix the priorities of an epic, a
sprint, a person or a list of keys:
1. Read the site's priority values; use the grid; never propose an
off-grid value without agreement.
2. Scope: the open tickets in scope plus their epics; exclude closed and
canceled.
3. Read for each ticket: priority, status, sprint, "blocks" links, due date,
parent epic, and the source ticket's priority for follow-up copies.
4. Apply the consistency rules of the priority grid in
`references/jira-conventions.md`.
5. Report without editing:
```
## Priority review - Epic FN-12 - 9 tickets
| Key | Title | Status | Sprint | Current | Suggested | Reason |
|---|---|---|---|---|---|---|
| FN-44 | Sync pending reports automatically | In progress | Sprint 12 | Low | High | In the current sprint and in progress |
| FN-52 | Offline report search | Open | - | Low | Low (deliberate) | Useful, not dated, backlog |
Unchanged: 7 tickets already consistent.
**Apply? (all / pick keys / no)**
```
6. After the "yes": edit **priority only** (no sprint, status, link or label
change), re-read each ticket and show `Key | Before | After`.
## Import from a file
Read the file (Python `csv`, or `openpyxl` for .xlsx), map the columns
(type, title, description, parent, priority, deadline), then follow batch
mode.
## Errors
- Project not found → list available projects, propose the closest.
- Issue type missing → look for localized names; otherwise report it.
- Parent link fails → create without it, link after, otherwise ask for a
manual link.
- Sprint not found → continue without sprint assignment and say so.
- Cancel refused with "Resolution is mandatory" → read the resolutions
allowed by the transition and pick an abandon / obsolete value.
- No transition to Canceled from the current status → do not force it;
propose an intermediate status, only with the user's agreement.
- Post the cancellation comment **after** the transition succeeds, never
before.
## Product context
This skill is one link in a chain that shares `product/product.yaml` in the
user's project (see `product-lifecycle`).
- **Reads:** `requirements`, `journeys`, `metrics`, `backlog`.
- **Writes:** Jira issues (after approval).
- **Updates in `product.yaml`:** `backlog.epics`, `backlog.stories` and `backlog.bugs`; and adds its output under `artifacts.jira-batch`.
- **Feeds:** `jira-story-points-review`, `jira-uat-tester`.
Measurement thread: same rule as `jira-user-story` for stories that
implement a journey step (tracking criterion with the exact
`journeys[].success_event`, never invented).
If `product/product.yaml` exists, read it first and reuse its IDs instead of
asking again. Update only the keys above, keep stable IDs, never renumber or
delete other entries, show the change before writing, and validate the YAML.
If it does not exist, work standalone and offer to create it with
`product-lifecycle` at the end.
## References
- `references/jira-conventions.md`: hierarchy, type decision tree, title format, labels, priority and story points grids, links (shared by all Jira skills)
- `references/template.md`: structure of the batch recap and audit table
- `references/example.md`: worked batch plan and audit on a fictional product
- `references/quality-checklist.md`: criteria to check before presenting the recap
- `references/sources.md`: established frameworks behind this skill
Follow the template, match the example's level of detail, and run the
quality checklist before presenting results; list any unchecked item as an
open point. Use `sources.md` when the user asks why a method is used.