# Milestone, focus and a release report

A package's way to a release: tickets in a milestone, the project focus on it, `tkt next` gives work only from there, a finished ticket goes into a release, and at the end a changelog is made from it.

1. Create a store in the `.tickets/` subfolder and pin it to the folder: `--pin` writes `.aitodo.yaml`, so every `tkt` command run here uses this store.

   ```console
   $ tkt init shop --workspace-dir .tickets --pin
   Workspace 'shop' initialized
   ```

2. Create a group with the `PAY` prefix. Without the group's repo anchor (`--repo`, `--branch`, `--base-ref`) no ticket can start.

   ```console
   $ tkt group new Payments --kind project --prefix PAY --repo https://example.com/shop.git --branch main --base-ref main --description 'Card payments and refunds'
   Created group payments
   ```

3. Two tickets in the `todo` status.

   ```console
   $ tkt ticket new "Partial refund" -g payments --status todo --description "Refund part of a payment" --details "Agreed with finance." --ac "Shown in the export"
   Created ticket PAY-001
   ```

4. The second one.

   ```console
   $ tkt ticket new "Refund export" -g payments --status todo --description "Refunds in the CSV export" --details "Agreed with finance." --ac "Shown in the export"
   Created ticket PAY-002
   ```

5. A milestone for the release.

   ```console
   $ tkt milestone new v1 --title "Release 1.0" --description "The first public release"
   Milestone saved milestone://v1
   ```

6. Put both tickets into it.

   ```console
   $ tkt milestone add v1 PAY-001 PAY-002
   Added PAY-001, PAY-002 to milestone://v1
   ```

7. Set the project focus on it: from now on `tkt next` gives everyone work only from it.

   ```console
   $ tkt focus set v1
   Focus set: milestone v1
   ```

8. The agent claims from the focus.

   ```console
   $ tkt next --claim --assignee me
   Focus: milestone v1
   Claimed PAY-001
   ```

9. The work is done: it hands the ticket over for review.

   ```console
   $ tkt ticket update PAY-001 --status in_review
   Updated ticket PAY-001
   ```

10. After the review: `done`, with the version of the release.

    ```console
    $ tkt ticket update PAY-001 --status done --release 1.0.0
    Updated ticket PAY-001
    ```

11. The milestone's board, by status.

    ```console
    $ tkt board v1
    1/2 done
    todo (1)
    done (1)
    ```

12. The changelog: the release's tickets by type, without AI.

    ```console
    $ tkt report release 1.0.0
    Release report: 1.0.0
    Partial refund
    ```

## Details

Details: [Milestones and capacity](/en/docs/guides/plan/milestones.md#plan-milestones), [The project focus](/en/docs/concepts/focus.md#plan-focus) and [Reports](/en/docs/guides/plan/reports.md#plan-reports).

## Related

- Guide: [Milestones and capacity](/en/docs/guides/plan/milestones.md): A milestone is a package to ship: its members, its exit criteria, its capacity and its scope; a release ships several together.
- Concept: [The project focus](/en/docs/concepts/focus.md): A milestone, an epic or a release the project works through now: tkt next stays inside it.
- Guide: [Reports](/en/docs/guides/plan/reports.md): The three tkt report commands on one page: value, release and context.
