# Releases

A release is a planned delivery: milestones, epics and tickets with a version and a date; shipping writes the version onto every finished ticket.

## Planning releases

A release is a planned delivery (`releases/<id>.md`, `release://<id>`): a date, a description, a candidate version and its members: milestones (`milestone://golive`), epics and tickets, mixed. A ticket outside the focus that ships next goes in too, so nobody has to remember it: `tkt release add nov PAY-009`. `tkt release get nov` shows the members and the tickets they reach (with the path: `milestone://golive → PAY-001 → PAY-002`) and `done/total`; `tkt release list` orders by date.

```console
$ tkt release new nov --title November --version 0.2.0 --target-date 2026-11-30 --description "Card payments" -t milestone://golive,PAY-009
```

Rules: a milestone is in at most one release; a ticket is in at most one unshipped release, directly or through a milestone or an epic; two releases never share a version (`v0.2` = `0.2.0`), and a shipped version is never given again. A refusal (`ERR_RELEASE_CONFLICT`) names the release, the path and the command that fixes it.

### Details

- The version is editable until the release ships: `tkt release edit nov --version 0.2.1` (`--no-version` clears it). Form: `tkt config set releaseVersionPattern semver` (`X.Y.Z` or `X.Y.Z-rc.N`); by default any version the ticket `release` field takes. A bad version: `ERR_SCHEMA_INVALID_VALUE`, with the form.
- Status: `planned`, `active`, `canceled`; `shipped` is set when the release ships, and from then on its version, status and members stay (`ERR_FIELD_READ_ONLY`). A `canceled` release holds nothing; reactivating it runs every rule again.
- `add`/`remove`: all or nothing, as for milestones; an unknown member: `ERR_REL_DANGLING`. A deleted ticket, epic or milestone leaves the release; move and renumber rewrite it. Body: Goal, Exit Criteria, Decisions, Notes, Release Notes.
- The ticket `release` field is the shipped stamp; set it by hand only to backfill work that already shipped.
- Context guard: `tkt lint release://nov` (ticket exit codes; `get` shows them too), on a planned or active release only. Blocks: `RELEASE_SHIP_OPEN` (an open ticket, the rule `ship` stops on), `RELEASE_NO_VERSION`. Warnings: `RELEASE_VERSION_NOT_NEWER`, `RELEASE_VERSION_PATTERN`, `RELEASE_OVERDUE`, `RELEASE_MILESTONE_LATE` (a member milestone due after the release), `RELEASE_SCOPE_LEAK` (a reached ticket waits on an open one outside; a cut decided under the release's Decisions is info).
- A ticket a planned release reaches gets the info hint `IN_RELEASE` on `tkt ticket get`, in `tkt next` and on a claim, beside `OUTSIDE_FOCUS`.

- `tkt release new nov --title T --version 0.2.0 --target-date 2026-11-30 --goal "…" -t milestone://golive -t PAY-009 --description "…"` (`--status active`, `--owner`); `tkt release edit` (`--title`, `--status`, `--version`/`--no-version`, `--target-date`/`--no-target-date`, `--owner`/`--no-owner`); `tkt release delete nov --yes` (members stay); `tkt release list --status planned`.
- `--json`: `get`: the release's fields, `goal`, `exitCriteria`, `members[] {ref, kind, title, status, tickets}`, `tickets[] {id, title, status, type, via}`, `progress`, `missing`, `releaseNotes`; `list`: `{items: [{id, title, status, version, targetDate, shippedAt, progress, …}], untracked}`; `add`/`remove`: `{release_id, added|removed, unchanged, members}`. REST: [Store API](/en/docs/reference/store-api.md#ref-store-api).

## Shipping a release

`tkt release ship nov` delivers a release: every `done` ticket it reaches (its direct tickets, its milestones' tickets and everything under an epic, at any depth) gets the version in its `release` field; the release becomes `shipped` with `shippedAt` (now, in UTC, or the day of `--shipped-at`) and its version is frozen. It prints the changelog (`tkt report release <VERSION>`).

```console
$ tkt release ship nov --move-open-to dec
```

An open ticket (any status but `done` and `canceled`) stops it: `ERR_RELEASE_OPEN` names each one with its path (`via epic PAY-001`) and nothing is written. Finish them, or ship the rest: `--move-open-to dec` makes them direct members of another planned release, `--drop-open` leaves them out. A milestone stays in the shipped release; only its open tickets go. An open epic does not stop a ship; it is stamped once `done`.

### Details

- No version: refused; `--version 0.2.1` gives or changes it at ship time.
- A version not newer than the last shipped one warns; at a terminal `tkt` asks, with `--json`, over REST or without a terminal it is refused (`ERR_RELEASE_CONFLICT`) unless `--allow-older` (a hotfix line).
- A ticket that already carries a version keeps it (it shipped before). A `canceled` ticket is never stamped; a `done` one under a `canceled` one is.
- A hand-set `tkt ticket update --release` on a ticket of an unshipped release: `ERR_RELEASE_PLANNED`, naming the release and `tkt release remove`. Backfilling other tickets works.

- `tkt release ship nov` (`--version`, `--shipped-at`, `--move-open-to`, `--drop-open`, `--allow-older`).
- `--json`: `{release, stamped, kept[] {id, release}, moved, movedTo, dropped, changelog, warnings}`. REST: [Store API](/en/docs/reference/store-api.md#ref-store-api).

## Release timeline, done vs shipped

`tkt release list` orders by date, not by version: first the shipped releases (`shippedAt`, newest first; a `1.4.1` hotfix can ship after `2.0.0`), then the planned ones (`targetDate`). Last the untracked versions: ticket `release` values no release carries. They work as before (`tkt report release`), only without a date, so off the timeline; `tkt doctor` names them as the info `UNTRACKED_RELEASE` and never fails on them. Optionally: `tkt release adopt 0.1.190 --shipped-at 2026-11-03`, its members the tickets carrying the version.

```console
$ tkt release adopt 0.1.190 --shipped-at 2026-11-03
```

There is no `shipped` ticket status: `done` = finished, the `release` stamp = out. `tkt ticket list --status done --unshipped` is the finished work not out yet, with its planned release; `tkt tree` and `tkt board` mark a shipped ticket `✓ 0.2.0`.

### Details

- `adopt` refuses a version a release has (`ERR_RELEASE_CONFLICT`) and one no ticket carries (`ERR_NOT_FOUND`). Old values may predate the `releaseVersionPattern`, so it takes any ticket version.
- `--unshipped`: tickets without a `release` stamp; the planned release is the one that reaches them (through a milestone or an epic too).

- `tkt release adopt <VERSION> --shipped-at YYYY-MM-DD` (`--id`, default `v0-1-190`; `--title`; `--description`; `--json`).
- `tkt release list --json`: `{items, untracked: [{version, tickets, done}]}`.
- `tkt ticket list --unshipped --json`: `plannedRelease` on every item.

## Commands on this page

- [`tkt release new`](/en/docs/reference/commands/milestone.md#tkt-release-new): Plan a release with the five body sections (Goal, Exit Criteria, Decisions, Notes, Release Notes)
- [`tkt release get`](/en/docs/reference/commands/milestone.md#tkt-release-get): Show version, dates, goal, exit criteria, members (milestones, epics, tickets) and the tickets they reach, with progress done/total, the stored release notes and the release's context guard hints (as `tkt lint release://<id>`)
- [`tkt release list`](/en/docs/reference/commands/milestone.md#tkt-release-list): List releases on the timeline: shipped ones newest first, then planned ones by target date; then the untracked versions (ticket release values without a release)
- [`tkt release edit`](/en/docs/reference/commands/milestone.md#tkt-release-edit): Change title, description, status, version, target date or owner; the body and every other byte stay
- [`tkt release delete`](/en/docs/reference/commands/milestone.md#tkt-release-delete): Delete a release; its milestones, epics and tickets are not touched
- [`tkt release add`](/en/docs/reference/commands/milestone.md#tkt-release-add): Add members
- [`tkt release remove`](/en/docs/reference/commands/milestone.md#tkt-release-remove): Remove members; they themselves stay
- [`tkt release ship`](/en/docs/reference/commands/milestone.md#tkt-release-ship): Ship a release: every done ticket it reaches gets the version in its `release` field, the release becomes shipped and its version frozen
- [`tkt release adopt`](/en/docs/reference/commands/milestone.md#tkt-release-adopt): Make an untracked version a shipped release: its members are the tickets carrying it

## Related

- Reference: [Store API](/en/docs/reference/store-api.md): One store's endpoints, for local and dev runs.
- Error code · 409: [`ERR_RELEASE_CONFLICT`](/en/docs/reference/errors.md#ERR_RELEASE_CONFLICT): A milestone, ticket or version another release already holds; the message names it and the fix
- Config key: [`releaseVersionPattern`](/en/docs/reference/config.md#releaseVersionPattern): The version form of a release: default or semver (X.Y.Z, X.Y.Z-rc.N)
- Hint · info: [`IN_RELEASE`](/en/docs/reference/hints.md#IN_RELEASE): A planned release reaches the ticket: it ships with it, tkt release ship writes its version
- Hint · block: [`RELEASE_SHIP_OPEN`](/en/docs/reference/hints.md#RELEASE_SHIP_OPEN): A planned release reaches an open ticket, so tkt release ship would stop (the same rule)
- Hint · block: [`RELEASE_NO_VERSION`](/en/docs/reference/hints.md#RELEASE_NO_VERSION): A planned release has no version, so it cannot ship
- Hint · warning: [`RELEASE_VERSION_NOT_NEWER`](/en/docs/reference/hints.md#RELEASE_VERSION_NOT_NEWER): A planned release's version is not newer than the last shipped one
- Hint · warning: [`RELEASE_VERSION_PATTERN`](/en/docs/reference/hints.md#RELEASE_VERSION_PATTERN): A planned release's version is off the project's releaseVersionPattern
- Hint · warning: [`RELEASE_OVERDUE`](/en/docs/reference/hints.md#RELEASE_OVERDUE): A planned release passed its target date
- Hint · warning: [`RELEASE_MILESTONE_LATE`](/en/docs/reference/hints.md#RELEASE_MILESTONE_LATE): A member milestone is due after the release
- Hint · warning: [`RELEASE_SCOPE_LEAK`](/en/docs/reference/hints.md#RELEASE_SCOPE_LEAK): A ticket the release reaches waits on an open ticket outside it; info once the cut is decided
- Error code · 409: [`ERR_RELEASE_OPEN`](/en/docs/reference/errors.md#ERR_RELEASE_OPEN): tkt release ship: open tickets in the release, each with its path; nothing written.
