Skip to main content
A segment is a named selection of the entries of a card, either by a search predicate or by a list of entry ids. Every segment command takes the card definition id first.

List and show

show prints the segment with the predicate it selects by. To see the entries of a segment, search the card:

Create a segment

In a terminal, the CLI asks for each value. Otherwise, pass JSON. type, description, image, tags, startTime and endTime are optional:
Occtoo tags the matching entries in the background. The segment is Initializing until that is done.

Query and fixed segments

  • A Query segment, the default, follows the entries that match its predicate.
  • A Fixed segment holds the entries you list by id:

What a segment predicate can use

where is a search predicate, as in occtoo cards entries search, but a segment takes only part of it: Use and at the top level, or anywhere, and not around a single condition. Patterns are case-sensitive. The API tells you what it doesn’t accept.

Edit a segment

Every field is optional. A field you leave out stays as it is.

Delete a segment