Changing a ticket
tkt ticket new "<title>" -g payments --description "<what>" --details "<what and why>" --ac "<criterion>" creates (the first -g is the primary group and the id prefix), tkt ticket update is a merge-patch, tkt ticket move changes the primary group (a new id, every reference rewritten), tkt ticket delete deletes.
On this page
- Content: every new ticket needs a filled body
## Description(--detailsor--body), afeatureorbugalso a filled acceptance criterion (--ac, repeatable); elseERR_TICKET_CONTENT_MISSING. An old incomplete ticket stays editable; only an update that empties## Descriptionor removes the last criterion is refused (ERR_TICKET_CONTENT_REMOVED). - Status: allowed transitions only (
ERR_STATUS_TRANSITION);in_progressneeds an effectiverepoAnchor.repo(ERR_REPO_ANCHOR_MISSING). Defer:--status deferred --reason "<why>"(the bundle hasblock_reason: "deferred",TICKET_DEFERRED); cancel with a reason:--status canceled --reason "<why>"; resume with--status backlog|todo. - Lists:
--add-label,--add-blocked-by PAY-002,PAY-003,--add-relates-to,--add-groupand their--remove-…pairs;--blocked-by/--relates-toreplace the list; a missing target:ERR_REL_DANGLING.
Details9 items
-
Description: every new ticket, group, decision, milestone, doc and gotcha needs
--description(descriptionover REST and in a plan), elseERR_SCHEMA_MISSING_FIELD. An old one without it stays editable andtkt doctorreports it (MISSING_DESCRIPTION);--descriptiononupdate/editsets it,''clears it. -
tkt doctorlists the old incomplete tickets (EMPTY_DESCRIPTION,MISSING_ACCEPTANCE_CRITERIA, with the command that fills them). The same rule holds over REST (body), intkt ticket importand in the writes oftkt plan; a feedback report needs its own template. -
ticket newwithout--body: the type's template, which--details/--acwrite into; without--status:backlog;--labelsets labels.blockedis a mark, not a status: on an open ticket, an openblockedByticket sets it (in_progress · blocked by PAY-010,tkt ticket list --blocked); acanceledblocker givesBLOCKER_CANCELED;tkt doctornames a storedblocked. A block outside the store:deferredwith--reason.--reason(only with a move todeferred/canceled, elseERR_DEFER_REASON_INVALID) goes to thestatusReasonfield and, dated, to## Notes; the list,--briefand the bundle header show it, the next status change clears it (the note stays). -
Successor:
--superseded-by PAY-040records the ticket that replaces this one (relationships.supersededBy): on an open ticket only with--status canceled, on adoneorcanceledticket without a status change (elseERR_SUPERSEDED_BY_INVALID; a missing targetERR_REL_DANGLING, a loopERR_REL_CYCLE).--briefand the bundle header showcontinue at PAY-040, the successor showssupersedes;""clears it, and so does reopening. A ticket that points at it (blockedBy,relatesTo,parent) getsSUPERSEDED_TICKET; forblockedBythe suggestion is to repoint it, the user's call. -
Transitions: backlog → todo, canceled, deferred; todo → in_progress, backlog, canceled, deferred; in_progress → in_review, todo, canceled; in_review → done, in_progress; done → in_progress; canceled → backlog; deferred → backlog, todo, canceled.
ticket new --statusis not checked. A feedback intake report (afrom:label) may also gotodo→done. -
No-op write: when the result equals what is stored (adding a link that is there, removing one that is not, the same field,
ref addwith the same fields,section setwith the same text,ac checkof a checked item), nothing is written,updatedAtstays, line 1 isNo change: …, exit 0.--jsonhaschanged: true|false(onupdatealsochanges, the fields that changed; onac check|uncheckfalseor the numbers it flipped). -
No flag for
repoAnchor: edit the file; refs: Refs and anchors. -
Lists (
tkt ticket update):--remove-label,--remove-blocked-by,--remove-relates-to,--remove-group,--parent/--no-parent;--blocked-by ""clears it; a missing target writes nothing, over REST too. Every update reports on stderr what it removed (a target not in the list: unchanged; arelatesTothe other ticket records: adding it writes nothing, removing it prints thetkt ticket updatethat removes it there). The primary group cannot be removed (ERR_GROUP_PRIMARY_LOCKED): move instead. -
Move:
tkt ticket move PAY-001 -g billing --dry-run, then--yes; a new id (BILL-…, the ULID stays), all or nothing;## Notesgets a line; doc and gotcha mentions are not rewritten;--jsonneeds--yesor--dry-run({oldId, newId, fromGroup, toGroup, rewrites}); RESTPOST /v1/tickets/{ticket_id}:move. A done or canceled ticket, or the current group:ERR_TICKET_MOVE_REFUSED.
Commands on this page#
tkt ticket updatePartial-update a ticket (merge-patch)→
tkt ticket moveMove a ticket to another primary group: its id changes, every reference follows→
tkt ticket newCreate a new ticket→
tkt ticket deleteHard-delete a ticket→