Collections and cards
Lists, the cards in them, the two identifiers every card carries, and the difference between where a card lives and where it appears.
A collection is a list. A card (an item, in the API) is a row in it. That is the whole shape, and almost everything else in the product is a way of looking at those two.
A card
Structurally, a card carries very little in its own right:
- a title;
- an icon — an emoji, or nothing;
- a cover image (
coverFileId) — an uploaded image file, shown on the card page as a landscape banner above the title (the default) or as a square to its left — a workspace setting,coverLayout— and at the top of the card on a board; or nothing; - a body — a block document;
- a status — one of the workspace's statuses;
- its place in a tree — a card can have a parent card, so sub-tasks and sub-pages are cards too;
- its rank in the manual order;
- a readable key, like
DOC-12; - who created it (
createdBy), frozen at creation, and who last modified it (updatedBy).
Everything else — assignee, due date, priority, tags — is a property, declared in the workspace registry and stored on the card as JSON.
Why so little is built in
An assignee and a due date look universal until you use the product for something other than task tracking. A content catalogue has neither; a CRM wants different ones. Columns that only some workspaces fill are a schema pretending to be a domain. So the rule is a card hard-codes what carries structure — what the tree, the ordering or the key depend on — and nothing else. Being common is not a reason for promotion.
This is not theoretical: assignee_id, due_date and start_date were once
real columns on the card, and were removed. They now come back as ordinary
declared properties, through the same compiler, the same cursor and the same
casts.
The icon and the author pass the same test, for different reasons. An icon does
not describe a card, it names it — it shows up everywhere the title shows
up and nowhere else, so a declared property would have forced every one of those
places to resolve a registry key to draw two characters. The author is a column
because the event log is partitioned by month and gets pruned: an author you read
from a journal disappears with the first retention policy, on the oldest cards
first — exactly the ones whose origin you end up wondering about. The last
editor is a column for the same reason, and is filterable as sys:updated_by.
The cover follows the icon: it presents the card rather than describing it, and
a board needs to know which image to draw without guessing which file property
plays that role.
What the icon is not
It is not sortable, filterable or groupable. A view that names it is rejected, rather than silently ordering cards by Unicode code point — which is an order nobody can predict or explain.
createdBy is null on cards created by an import, a seed or a background job,
and on every card that predates the column: it was not backfilled, because there
was nothing true to put there. The UI hides the row rather than showing
"unknown". updatedBy follows the same rules: recorded from whoever writes —
never from the request body —, null after a system write, and not backfilled.
Two identifiers
Every card has two, and they are not interchangeable:
id is a UUIDv7. It is what the API takes in paths, and it is time-ordered,
which is what makes keyset pagination cheap.
key is the readable one — DOC-12. It is composed by the API from the key
prefix of the card's home collection and its number.
Never compose a key on the client. A view can include cards from other lists, so
the prefix in front of a number is not necessarily the prefix of the list you
are looking at. And numbers are never recycled: delete DOC-12 and the next
card is DOC-13.
Home list, and the lists a card appears in
A card belongs to exactly one home collection — that is where it was created and where its key comes from.
It can also be attached to other collections. Attachment does not move or copy the card; it makes the same card show up in a second list. One card, one set of values, several places it can be found.
Views decide whether they follow those attachments, through
includeSecondaryLists in the view definition. The
default view — what you get for a list with no saved views — does include them.
A real bug this caused
That default used to be re-implemented in each client rather than published by
the API. The web app included attachments; the iOS app did not. A list whose
cards all arrive by attachment therefore looked full on the web and empty on
the phone, with nothing wrong anywhere. The API now publishes it as
CollectionDetail.defaultView. A copied default doesn't break — it diverges.
Reading a whole list in one call
GET /workspaces/{workspaceId}/collections/{collectionId} returns everything a
screen needs at once: the collection, the property registry, the system fields,
the statuses, the saved views, the default view, the members and your role.
The cards are not in it. They come from
POST …/query, because which cards you want depends on
which view you are looking at.
Statuses
Statuses are defined once for the workspace, and each list chooses the ones it uses and their order — "Done" can be shared by three lists, "confirmed" can exist for Bugs only. A card may only take a status of its home list, whichever list displays it. Each status has:
- a label — whatever you call it;
- a category —
todo,doingordone; - a position — the workspace's default ordering;
- a colour — one of eight closed palette tokens.
The category is the part that means something. It is what lets a view say "not
finished yet" and stay true in a workspace whose statuses are called something
else entirely. The colour means nothing at all and compiles nowhere — it exists
so two doing statuses can be told apart at a glance, and so changing a
category doesn't repaint the board.
The palette is closed (gray, red, orange, yellow, green, blue,
purple, pink) on purpose. A free-form colour would be unreadable a third of
the time and would force every surface that renders a status to invent a
contrast.
Groups in the sidebar
Collections can be filed into groups, and groups into one level of sub-groups. Two levels, not three.
That bound is what keeps the sidebar a flat loop over a flat list, and a move a one-row update — no materialised paths, no subtree rewrites, no recursive queries.
A group is a label, not a container: deleting one detaches its lists in the same transaction and deletes nothing. It has no page of its own, which is why nothing in the API addresses a group as a location.
A card does carry its filing, though: every entry of ItemDetail.collections
has a groupPath — the groups that file that list, outermost first, [] for a
list at the root. The server resolves it with two left joins rather than letting
clients reassemble a hierarchy from the flat group list, for the same reason it
composes key: the two-level bound is a service rule, and a client that
reconstructs it reconstructs it wrong the day it changes.
A list as pages: the wiki
A list has a presentation: cards (the default — table, board, views) or
pages. As pages, it reads like a wiki: it opens on its first page, its pages are
arranged as a tree under it in the sidebar (you expand them, add a page or a
sub-page with “+”, reorder and nest them by dragging), and the key stays in the
background. The gallery's “Wiki” template creates one.
A page stays a full card: its key (WIK-3), its statuses, its properties,
its views, its API. There is no card without a list, on purpose — the key, the
allowed statuses and pagination all depend on the home list. The hierarchy is the
one subtasks use (parentId), so there is nothing new to learn to read or write
it. The presentation is changed in the list settings (PATCH …/collections/{id}
with presentation) and rewrites nothing: switching back to cards gives the
table back as it was.
The tree is read one level at a time: GET …/collections/{id}/pages returns the
root pages in manual order, ?parentId= the sub-pages of a page, each with
hasChildren — keyset cursor, never an offset. Archived cards are left out.
Reordering and nesting go through POST …/items/{id}/move, as everywhere.
presentation is an open string in responses: render a value you do not know
as cards.
Archiving, deleting, and the trash
PATCH { "archived": true } takes a card out of every view and out of search,
and is reversible. An archived card still exists: it can be opened, linked to,
read by its id.
DELETE moves the card and its whole subtree to the trash. From then
on it exists nowhere — not in views, search, subtasks, relations, mentions,
published reads nor the overview — and any write to it answers 404. For 30
days it can be restored as it was: same key (SPR-12), properties, relations,
secondary lists, comments and versions. Deleting a list does the same with the
cards whose home list it is. After 30 days, the trash is emptied for good;
an admin can also do it earlier.
The trash routes.
The interface offers both. They live in the same ⋯ menu, in the top right of an open card, next to the
one gesture there that adds rather than removes:
duplicating it.
Card templates
A list can hold card templates: a “Bug report” with its body already laid out (steps, expected, actual), its priority, its subtasks. A template is a card of the list — same title, icon, body, status, properties and subtasks — that no read of the list shows: not views, kanban columns, counts, search, backlinks, the relations you can pick, the overview, published reads nor bulk edits. It is never published.
New card ▾, in the list header, creates a card from a template and opens it: a copy of the template, subtasks included, with a new number and you as its author. The list can have a default template (list settings): “New card” and the empty row at the bottom of every view then start from it — in a kanban column, the card is born in that column, in a single write.
Two variables, and only two, fill a property when the card is created
rather than fixing it in the template: today for a date property, me (the
person creating the card) for a person or multi_person one. They are set in
the banner at the top of the template. Anything beyond that would be a formula,
and there are none here.
Any root card becomes a template from its ⋯ menu, and back. Templates belong
to one list: a template shared between lists does not exist.
The template routes.
Restricted lists and guests
A list is seen by the whole workspace, or only by those named on it. A guest exists in the workspace only through the lists they are named on. The rule lives in the database, under every read.
The property registry
Fourteen types, declared once per workspace, validated when written — and what each one can be sorted, filtered or grouped by.