---
name: Work Items To Jira
slug: work-items-to-jira
category: Automation
description: Work Items To Jira breaks an existing work-items.md file into Jira tickets in one project, creating one issue per slice and linking dependencies. Use it after planning work items when you want implementation tickets tracked in Jira.
github: "https://github.com/testdouble/han/tree/main/han-atlassian/skills/work-items-to-jira"
language: Shell
stars: 253
forks: 22
install: "npx degit https://github.com/testdouble/han/tree/main/han-atlassian/skills/work-items-to-jira ~/.claude/skills/work-items-to-jira"
installs_to: ~/.claude/skills/work-items-to-jira
source_path: han-atlassian/skills/work-items-to-jira/SKILL.md
collection_size: 25
category_size: 1648
collection_url: "https://dirskills.com/collections/testdouble/han"
added: 2026-09-02T05:20:49.223Z
last_synced: 2026-09-02T05:20:49.223Z
canonical_url: "https://dirskills.com/skills/work-items-to-jira"
---

# Work Items To Jira

Work Items To Jira breaks an existing work-items.md file into Jira tickets in one project, creating one issue per slice and linking dependencies. Use it after planning work items when you want implementation tickets tracked in Jira.

**Install:**

```bash
npx degit https://github.com/testdouble/han/tree/main/han-atlassian/skills/work-items-to-jira ~/.claude/skills/work-items-to-jira
```

## README

## Project Context

- personal config directory: !`bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"`
- project .han/config.md: !`cat .han/config.md 2>/dev/null || echo ""`

As your first action, use the Read tool on `.han/config.md` inside the `personal config directory` path above. A read
that returns no file is no personal configuration: continue silently. When that file or the `project .han/config.md`
probe supplies content, apply it per [config-rule.md](../../references/config-rule.md), which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

# Work Items to Jira Tickets

Take an already-broken-down `work-items.md` file (produced by `/plan-work-items`) and publish each slice as a Jira
ticket in a single target project.

The breakdown work — drafting slices, assigning symbolic IDs, specifying dependencies, inventorying references — has
already been done upstream. This skill's job is to validate the format, confirm the target, create one ticket per slice
through the Atlassian MCP server, link the within-file dependencies, and place the tickets in the chosen column.

## Rules

- **Every slice posts into one Jira project.** This skill does not split work across repos or projects. A
  `work-items.md` that names multiple code repos still produces tickets in the single project you name; the repo prose
  is informational only.
- **Dependencies are within-file only.** Every SYM named in a `Depends on` line must resolve to another slice in the
  same file. A `Depends on` that names an unknown SYM is a format error to surface for repair.
- **Symbolic-ID prefixes:** accept whatever the input uses. Any uppercase prefix shape is valid (`W-N`, `V2-N`, `EV-N`,
  …); the prefix has no effect on Jira placement.
- **Defaults:** issue type `Story`, no assignee, reporter taken from the Atlassian MCP identity, and the project's
  initial status (Backlog). Each is overridable per run; nothing is assigned or moved unless asked.
- **Parenting is optional and determines the child issue type.** `--parent <KEY>` accepts an epic or a standard issue (a
  story, task, or bug). Under an **epic**, each item is a standard issue (default `Story`). Under a **story** (any
  standard issue), each item is a **subtask** (default the project's subtask issue type). You cannot parent under a
  subtask. `--epic <KEY>` is a deprecated alias for `--parent`; it resolves the same way regardless of the named issue's
  actual type.
- **Every slice ticket MUST carry the reference artifacts an implementer needs** — API/event contracts, design
  references, schema docs, runbooks, ADRs, coding standards. Tickets that consume an HTTP endpoint or event payload MUST
  reference the contract section that defines it. Full include/exclude list in
  [references/reference-artifact-inventory.md](./references/reference-artifact-inventory.md).
- **NEVER include process artifacts in ticket descriptions.** Excluded: iteration histories, decision logs, review
  findings, team findings, facilitation summaries, gap analyses, and anything under an `artifacts/` subfolder of the
  plan that is not a contract or design reference.
- **No screenshot upload or image embedding.** Design references are carried as links, not uploaded into Jira. See
  [references/jira-ticket-template.md](./references/jira-ticket-template.md).

## Process

### 0. Atlassian MCP preflight (hard requirement)

This skill cannot run without a configured and connected Atlassian MCP server. Confirm it is reachable by calling
`mcp__claude_ai_Atlassian__getAccessibleAtlassianResources` to retrieve the cloud ID(s). If the tool is unavailable, the
call errors, or it returns no accessible resources, **stop immediately** and tell the user the skill requires the
Atlassian MCP server to be installed, configured, and authenticated. Do not fall back to any other publishing target.

If more than one site is accessible, note which are available; you will confirm the right one while resolving the
project in Step 3.

### 1. Locate the work-items file

If the path is not provided, ask for it. The input is a single `work-items.md` produced by `/plan-work-items`. Read it.
Its format is described in [references/work-items-file-format.md](./references/work-items-file-format.md).

### 2. Gather the run options

Read these from the arguments and conversation; do not guess defaults the user did not ask for:

- **Target project or board** — `--project <KEY>` (e.g., `ACME`) or `--board <name/URL>`. **Required.** If absent, ask
  for it in Step 3.
- **Parent** — `--parent <KEY>` (an epic like `ACME-12`, or a story / standard issue like `ACME-34`) or an issue URL.
  Optional. When present, every created ticket is parented to it. `--epic <KEY>` is accepted as a deprecated alias for
  the same option; if both are given and name different keys, stop and ask which one. The parent's hierarchy level
  decides the child issue type (resolved in Step 3): standard issues under an epic, subtasks under a story.
- **Issue type** — `--type <name>`. Optional; defaults to `Story` at the project top level or under an epic, and to the
  project's subtask issue type when the parent is a story.
- **Assignee** — `--assignee <accountId or email>`. Optional; defaults to unassigned.
- **Column** — `--column <name>`. Optional; defaults to the project's initial status (Backlog).

### 3. Resolve the target against Jira

Using the cloud ID from Step 0, resolve everything concretely now so failures surface before any ticket is created:

- **Project (required).** If given a project key, confirm it with `mcp__claude_ai_Atlassian__getVisibleJiraProjects`. If
  given a board, resolve it to its underlying project (list projects and match; if a board maps to more than one project
  or is ambiguous, ask the user which project to use). If no project or board was provided, ask for one — do not proceed
  without a project key.
- **Parent (optional).** If a parent was named (`--parent`, or the deprecated `--epic`), fetch it with
  `mcp__claude_ai_Atlassian__getJiraIssue` to confirm it exists and is in the target project, then read its issue type's
  hierarchy level to decide the child mode:
  - **Epic** (an epic-type issue, hierarchy level above standard) → children are **standard-level issues**; the
    effective default issue type is `Story`.
  - **Standard issue** (Story, Task, Bug — hierarchy level 0) → children must be **subtasks**; the effective default
    issue type is the project's subtask type (resolved in the next bullet).
  - **Subtask** → **stop**: a subtask cannot have children. Tell the user to name an epic or a standard issue instead.

  Record the parent's key and which child mode applies.

- **Issue type.** Call `mcp__claude_ai_Atlassian__getJiraProjectIssueTypesMetadata` for the project. Determine the
  effective default from the parent mode above (no parent or epic parent → `Story`; story parent → the project's subtask
  issue type, the one flagged as a subtask in the metadata). Then confirm the chosen type — the `--type` override when
  given, otherwise the effective default — both **exists** in the project and sits at the **correct hierarchy level**
  for the parent: under a story it must be a subtask type, otherwise it must be a standard (non-subtask) type. If the
  chosen type is missing or at the wrong level, surface the available types at the correct level and ask the user to
  pick one. If a story parent is named but the project exposes no subtask type, stop and tell the user subtasks are not
  enabled in this project.
- **Assignee (optional).** If an assignee was named, resolve it to an account ID with
  `mcp__claude_ai_Atlassian__lookupJiraAccountId`. If unset, leave tickets unassigned.
- **Column (optional).** If a column was named, hold it for Step 8. Resolve the matching status when you transition
  (Step 8), since transitions are per-issue.

### 4. Validate the format with evidence-based repair

Check the work-items file against the invariants in
[references/jira-ticket-template.md](./references/jira-ticket-template.md) and
[references/work-items-file-format.md](./references/work-items-file-format.md):

- **Heading shape.** Every slice heading matches `## <SYM-N> — <title>` with an em-dash separator (already-published
  headings annotated as `## <SYM-N> (<KEY>) — <title>` are valid too).
- **`Depends on` line.** Literal bold marker `**Depends on.**`, trailing period, `None.` or comma-separated SYMs.
- **Within-file blockers.** Every SYM named in a `Depends on` line resolves to another slice in this file.
- **References block.** Present whenever the slice consumes an HTTP endpoint, event payload, design frame, ADR, coding
  standard, or other named artifact.
- **No process artifacts.** No links to iteration histories, decision logs, review findings, team findings, facilitation
  summaries, gap analyses, or anything under an `artifacts/` subfolder that is not a contract or design reference.

When a check fails, attempt evidence-based repair. Pull evidence from the source `work-items.md`, the parent plan
referenced in its intro, the feature spec in the same folder, sibling files in the plan folder, and the relevant repo's
ADRs / coding standards / docs:

- **Malformed heading** — propose the corrected shape based on the surrounding text. Cite the line number.
- **Missing `Depends on` line** — propose `None.` if no blockers are evident in the slice's prose. Cite the absence.
- **Unknown-SYM `Depends on`** — propose either the correct in-file SYM (if a typo is evident) or `None.`. Cite the SYM
  list this file actually defines.
- **Missing References bullet for an HTTP-consuming slice** — propose the contract section link from the parent plan's
  External Interfaces / API Contracts section. Cite the anchor.
- **Missing References bullet for a UI slice** — propose the design frame and document path from the feature spec's
  Visual Reference table. Cite the spec section.
- **Process-artifact link found** — propose removing the link and (if the slice still needs the context) restating the
  decision in plain language, with a **Plan decisions** References bullet naming the ID plus a one-sentence description.
  Cite the include/exclude list.

After validation, report findings in plain language. For each finding name: (1) what is wrong — slice SYM, line
reference, failing invariant; (2) the proposed fill — corrected line, new bullet, removed link; (3) the evidence — file
path with line number, document section, or named source.

Then give the user three actions: **Continue with fills** (apply the repairs to the source `work-items.md` and proceed),
**Correct the fills** (user provides the right values; apply those and proceed), or **Stop** (exit without creating
tickets). If validation passes with no findings, proceed to Step 5.

### 5. Show the plan for confirmation

Creating Jira tickets writes to a shared system, so confirm before doing it. Present a summary and wait for an explicit
yes:

- **Destination:** the Jira site, the target project (key and name), the parent (if any, named as the epic or story it
  is and what each item becomes under it — a standard issue or a subtask), the issue type, the assignee (or
  "unassigned"), and the target column (or "Backlog (default)").
- **The tickets to create:** a table of every slice that does not already carry a `(<KEY>)` annotation.

| SYM | Summary (ticket title)                    | Depends on |
| --- | ----------------------------------------- | ---------- |
| W-1 | Backend per-list validator generalization | None       |
| W-2 | …                                         | W-1        |

State the total count and that reporter will be the authenticated Atlassian user. Do not create anything until the user
confirms.

### 6. Create one ticket per slice

Walk the slices in file order (blocker-first, as authored). Skip any slice whose heading already carries a `(<KEY>)`
annotation so a re-run resumes cleanly. For each remaining slice, call `mcp__claude_ai_Atlassian__createJiraIssue` with:

- the cloud ID and target **project key**,
- **issue type** = the type resolved in Step 3 (default `Story` at the top level or under an epic; the project's subtask
  type when the parent is a story),
- **summary** = the slice title (the text after `— ` in the heading),
- **description** = the rendered slice body (everything below the heading: Summary, Description, any notes, References,
  Tests, Acceptance criteria). Pass it as Markdown; if the create tool requires ADF, convert it. Confirm the expected
  format against the tool's input schema.
- **parent** = the resolved parent key, when a parent was resolved (Step 3) — an epic for standard-issue children, or a
  story for subtask children. Use the `parent` field the project's create metadata exposes; for a subtask, Jira requires
  `parent`. If `parent` is rejected for an epic in a company-managed project, surface the legacy "Epic Link" field
  requirement rather than dropping the parent silently.
- **assignee** = the resolved account ID only when the user provided one; otherwise omit it (unassigned).
- **reporter:** never set it. Jira records the authenticated MCP user as reporter.

After each successful create, capture the returned Jira key and rewrite that slice's heading in place from
`## <SYM-N> — <title>` to `## <SYM-N> (<KEY>) — <title>` using Edit, so dependencies resolve and re-runs skip it. Report
each creation as `created: <SYM-N> -> <KEY>`.

### 7. Link dependencies

Once every slice has a Jira key, build the SYM→key map from the annotated headings and walk each slice's
`**Depends on.**` line. For each blocker (skip `None.`):

- **Record it durably in the dependent ticket.** Rewrite the dependent ticket's `Depends on` line in its description
  from symbolic IDs to the blockers' Jira keys (linked), via `mcp__claude_ai_Atlassian__editJiraIssue`. This survives
  regardless of native-link support.
- **Create a native link when available.** If the configured Atlassian MCP exposes an issue-link capability, also create
  an "is blocked by" relationship from the dependent ticket to each blocker. If no issue-link tool is available, say so
  once in the final report rather than implying native links were made.

Report each as `linked: <SYM-A>(<KEY-A>) blocked_by <SYM-B>(<KEY-B>)`.

### 8. Place tickets in the target column

By default, leave every ticket in the project's initial status (Backlog) and do nothing here.

When the user named a `--column`, transition each created ticket toward the matching status: call
`mcp__claude_ai_Atlassian__getTransitionsForJiraIssue` for the ticket, find the transition whose target status matches
the requested column, and apply it with `mcp__claude_ai_Atlassian__transitionJiraIssue`. If no transition leads to the
requested column for a ticket, do not force it — report that ticket as left in Backlog and name the column it could not
reach, so the user can move it by hand.

### 9. Report

Summarize: the project and parent (if any, named as the epic or story it is), the issue type used (noting "subtask" when
items were nested under a story), the assignee (or unassigned), and the column. List every created ticket as
`<SYM-N> — <KEY>` with its URL, the count of dependency links made (and whether they are native Jira links or
description references), and any slices skipped because they already carried a key. If any step failed, report the error
and confirm the source `work-items.md` annotations reflect exactly which tickets were created.
