Writing back while working
Writing one section at a time, and the rule by which every reader and writer finds the fixed sections.
Writing back while working#
Change one body section at a time, never with --body (it replaces the whole body); none of these changes the status. tkt ticket note PAY-001 "<text>" appends - YYYY-MM-DD: text to ## Notes. tkt ticket section set|append PAY-001 <Heading> --text "<md>" (or --file, - = stdin) creates a missing section at its canonical place. tkt ticket ac list|check|uncheck|add|edit|remove PAY-001 <selector> takes a 1-based index or a text matching exactly one item, else ERR_AC_SELECTOR_INVALID; all or nothing.
Details3 items
-
--dateoverrides the date; a bad one:ERR_TIMESTAMP_INVALID. Headings match by the fixed sections rule; two with one name:ERR_BODY_SECTION_AMBIGUOUS, nothing written. A title that is only a deeper heading (### Notes):ERR_BODY_SECTION_MISSING, no second## Notes; likewisetkt group section set|appendandtkt milestone section set|append. -
ac: the index is the oneac listprints; only the[ ]marker changes;--allticks every item; an item already in that state: no write, exit 0; ticking the last item does not setdone.ac addappends or inserts before--at Nand creates a missing section (clearingMISSING_ACCEPTANCE_CRITERIA);ac editrewrites a superseded item, marker kept; afterac removethe rest renumber (list again), and a parent goes only with its children. No section or checkbox:ERR_BODY_SECTION_MISSING. A line in a code fence is no item. -
tkt ticket section set|append --json:{ticket_id, section, created, content, normalized};tkt ticket ac list --json:{ticket_id, total, done, items}.
Fixed body sections#
A ticket's fixed ## sections, in order: ## Description, ## Acceptance Criteria, ## In Scope, ## Out of Scope, ## Implementation Notes, ## Verification, ## Context, ## Notes, and ## Value; a group's ## Overview, ## Conventions, ## Gotchas, ## Verification; a milestone's ## Goal, ## Exit Criteria, ## Decisions, ## Notes. Not configurable.
- One rule finds them for every reader and writer: any case and spacing; the title may go on after a non-letter (
## Acceptance Criteria (MVP)). Not in a code fence, not as###. - Ticket writes (CLI and REST) rewrite an H2
## AC,## Acceptance Criterion,## Elfogadási feltételek,## Elfogadási kritériumokto## Acceptance Criteriaand a* [ ]/+ [ ]item under it to- [ ], and say so (stderr;normalizedin--jsonand REST). - A near-miss (
### Acceptance Criteria,## Acceptance Criterias, a1. [ ]item) getsMISNAMED_SECTIONwithdata.canonical, for every ticket type.
Details1 items
- Only when there is no
## Acceptance Criteriayet and the variant is there once;## AC (MVP)and deeper headings never move. A title naming several suffixed sections:ERR_BODY_SECTION_AMBIGUOUSon a write; a reader takes the first.
Commands on this page#
tkt ticket noteAppend a dated - YYYY-MM-DD: text entry to the ticket's ## Notes section→
tkt ticket section setReplace a section's content (heading kept; empty content clears it)→
tkt ticket section appendAppend content after the section's last line (no blank line inserted)→
tkt ticket ac addAdd an unchecked item; a missing AC section is created→
tkt ticket ac checkTick items→
tkt ticket ac uncheckUntick items→
tkt ticket ac editRewrite one item's text; its checkbox state and position are kept→
tkt ticket ac removeDelete items→
tkt ticket ac listList the Acceptance Criteria with their 1-based indices and done/total→