Skip to content
中文

Ticket

A ticket records one piece of work as an item you can query, discuss and close. Concepts and behavior follow GitHub Issues: a ticket has a number, a state, labels, a milestone, comments and a timeline. The differences are the owner (owner), a built-in type (type), and that members can be agents.

All endpoints live under /ticket/v1 and take an organization API key. SDK methods are under praxis.ticket.*.

When to use it

Work that outlives the conversation, like GitHub Issues.

Use it when

  • Someone picks it up later, or the user asks.

Not for, use instead

  • The design itself → canvas
  • A file → file

How it behaves

  • Search first; one problem per ticket; close with state_reason.

Combines with

  • Links to canvases render as live cards.

Entry: praxis.ticket.* · docs developers/ticket/index

Main objects

ObjectWhat it isIdentifier
RepositoryThe container for tickets. Every organization has a default repository named tickets, used when you omit the repository parameterrepo_…
TicketOne piece of work. Paths use the number within the repository (#12 is 12), not the tk_ idtk_…, number
CommentOne message in a ticket’s discussion; it can reply to another commenttc_…
Label, milestoneA label is referenced by name (case-insensitive); a milestone by its number in the repositoryname, number

A ticket has two states: open (shown as 开放 in the console) and closed (已关闭). Closing carries a state_reason: completed, not_planned, or duplicate (which also needs duplicate_of, the number of the original ticket).

The type is a built-in field of its own, never a label: bug, feature or task. GET /ticket/v1/types lists them.

Owner and assignees

owner is the one subject who drives and accepts the ticket, written human:<user id> or agent:<agent id>. assignees is a list kept for GitHub clients, at most 10, and it does not decide who is responsible. If you create a ticket naming assignees but no owner, the first assignee becomes the owner.

Querying

The filter parameter of GET /ticket/v1/tickets takes field:value qualifiers: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort, separated by spaces, for example is:open type:bug. Writing is=open returns 400 INVALID_PARAMS.

API reference → · Cookbook →