Spunto CMS
Concepts

The property registry

Fourteen types, declared once per workspace, validated when written — and what each one can be sorted, filtered or grouped by.

Properties are declared per workspace, not per collection. One registry, shared by every list in it.

That is why a card keeps its values when it moves between lists: the property it holds a value for is the same object before and after. A per-list schema would have made "move this card" mean "drop the fields the destination doesn't have", which is a data loss disguised as a navigation.

Which properties a given list shows is a separate question — that is displayedFieldIds on the collection, and it is presentation. It is also what a card's page shows: the properties of its list, then those of the lists it is attached to — not the whole registry. A value filled in outside those lists is not hidden; it sits under "Other properties". And "Add a property" from a card adds it to the card's list. On the API side, each list in ItemDetail.collections carries its selection (fieldIds), and POST /workspaces/{workspaceId}/collections/{collectionId}/fields adds one property without replacing the others. A list that chose nothing (empty displayedFieldIds) shows the whole registry.

The seventeen types

TypeHoldsValidated againstSort / group
textA string—yes
numberA number—yes
selectOne optionconfig.options, when declaredyes
dateA day, an instant (includeTime) or a range (range)the calendaryes (on the start)
checkboxA boolean—yes
urlAn absolute http, https or mailto URL, with an optional labelthe schemeyes (on the address)
emailAn email address, shown as a mailto: linkits shapeyes
phoneA phone number, shown as a tel: linkdigits, spaces, + - . ( )yes
personA member of this workspacethe membership tableyes
fileA file uploaded to this workspacethe file tableyes
multi_selectSeveral optionsconfig.options, when declaredno
multi_personSeveral membersthe membership tableno
multi_fileSeveral files uploaded to this workspacethe file tableno
relationSeveral items, read from both sidesthe items of this workspaceno
rollupComputed from the items linked by a relation — never writtenits definition, at creationsort yes, group no
formulaComputed from the item's other properties — never writtenits text, on savesort yes, group no
buttonNo value — actions run on the item by whoever clicksits actions, on writeno (nor filter)

Filter operators are not restricted per type by the API — the same set (eq, neq, lt, lte, gt, gte, contains, starts_with, in, not_in, is_empty, is_not_empty) compiles against any scalar property, and what it means follows from the type. The interface offers a narrower, sensible subset per type; a client driving the API directly is not held to it. The array types are the exception, and it is worth knowing why before you design around them.

A url value is a string — "https://github.com/acme/web/pull/42" — until someone gives it a label. It is then an object, { "url": "https://…/pull/42", "label": "PR #42" }, and the label is shown instead of the address. Write either form; clearing the label ("" or omitted) stores the plain string again, so a reader that only expects strings only ever sees an object on a value someone chose to label. Filters and sorts apply to the address, never to the label.

Dates: a time, an end

A date value is a day — "2026-11-12" — unless the property says otherwise in its config:

  • includeTime: true — a value may be an instant, "2026-11-12T14:30:00Z". Write it with any offset ("2026-11-12T15:30+01:00"); it is stored and returned in UTC, to the second. An instant without an offset is refused: 15:30 names no moment until a time zone is attached. A plain day stays valid — it means all day.
  • range: true — a value may have an end, { "start": "2026-11-10", "end": "2026-11-14" }: two days or two instants, never one of each, and end >= start. Without an end (or with an end equal to the start), the value is written back as the plain string of its start.

A property with neither keeps returning plain day strings, exactly as before, so a client that only knows days never receives anything else from it. Unchecking either setting rewrites nothing: values already set stay readable, only new writes are held to the narrower shape.

Sorting, grouping and filters read the start. A filter against a day means the whole day: eq "2026-11-12" matches 08:00 and 18:30, lte "2026-11-12" includes the evening. A filter against an instant compares instants. The end of a range is reachable in filters only, with field.part: "end" — that is how "in progress on the 12th" is written:

{ "and": [
  { "op": "lte", "field": { "fieldId": "<date fieldId>" }, "value": "2026-11-12" },
  { "or": [
    { "op": "gte", "field": { "fieldId": "<date fieldId>", "part": "end" }, "value": "2026-11-12" },
    { "op": "eq",  "field": { "fieldId": "<date fieldId>" }, "value": "2026-11-12" }
  ] }
] }

Days — in filters, group keys and calendar windows — are UTC days. Each person's time zone (Settings › Account) only changes how times are displayed.

Emails and phone numbers

An email is a string checked for a reasonable shape — one @, a domain with a dot, no spaces — not against the full RFC grammar, which accepts addresses no mail client opens. A phone keeps the number as you wrote it (+33 1 23 45 67 89, (555) 010-0199): digits, spaces, + - . ( ), at least three digits, 32 characters at most; runs of spaces are collapsed. A pasted mailto: or tel: prefix is stripped. Both are rendered as links, and both read like text: same operators, sortable, groupable.

Array types

multi_select, multi_person and multi_file hold a list. They are filtered by containment — eq and contains both mean "has this value among its values", because that is what filtering on a tag means — and they cannot be sorted or grouped by. Asking for either returns a 400 that says so.

That is a refusal, not a gap. Postgres would happily sort them; it would sort them by the document order of a JSON array, which means the interface would show a sort control that produces an ordering no user could predict or explain. A control that lies is worse than a control that is absent.

multi_person rather than a column

An "Assignees" property is a multi_person. It was deliberately not added as an assignee_ids column on the card, and the reason generalises:

a board's invariant is that the columns add up to the view. A card with two assignees, grouped by assignee, would appear in two columns — so grouping by an array type is refused, which means an array type has no business being a promoted column that everything else assumes is scalar.

Once that argument was made, it also settled the singular: "Assignee" is a declared person property, not a column either.

A relation links items to items — a bug and the work item that fixes it, an article and its related articles. It is declared as a pair: creating "Fixed by" on bugs also creates "Fixes" on backlog items. What you link on one side reads on the other, immediately, and nothing can make them drift apart: a link is one piece of data, read by both properties.

POST /workspaces/{workspaceId}/fields
{
  "key": "fixed_by",
  "name": "Fixed by",
  "type": "relation",
  "config": {
    "relation": {
      "collectionId": "<Backlog collection id>",
      "inverse": { "key": "fixes", "name": "Fixes", "collectionId": "<Bugs collection id>" }
    }
  }
}

collectionId says where the items of this property come from: "Fixed by" only accepts Backlog items. It is optional — without it, any item of the workspace is accepted. The pair and its collections are fixed at creation, like the type; each half can be renamed freely. Deleting one deletes the other, and every link.

On an item, the value is an array of item ids, like a multi_person. A PATCH replaces it: [a, b] links those two items and unlinks the others, [] or null unlinks everything. Several items can fix the same bug, and one item can fix several. The linked items come resolved alongside — key, title, icon, archived or not — in relatedItems, on an item as on a view page. Deleting an item undoes its links.

A relation filters like an array: contains (linked to this item), neq (not linked to this one), in, not_in, is_empty, is_not_empty. "Bugs with no work item" is { "op": "is_empty", "field": { "fieldId": "<Fixed by>" } }. It is neither sorted nor grouped: an item that fixes two bugs would sit in two columns.

rollup: what the linked items add up to

A rollup reads a relation and computes something from the items on the other side: how many bugs are linked, the sum of the linked tasks' points, the share that is done, the latest due date. It holds no value of its own — the API computes it on every read, and refuses to write it (a 400, from a PATCH, a bulk edit or an import alike).

POST /workspaces/{workspaceId}/fields
{
  "key": "points_total",
  "name": "Points",
  "type": "rollup",
  "config": {
    "rollup": { "relationFieldId": "<Tasks relation id>", "target": "<Points field id>", "fn": "sum" }
  }
}
fntargetValue
countsys:countnumber of linked items
count_valuesany property but a checkboxlinked items whose property is filled
sum, avga numbersum, average (two decimals)
min, maxa number or a datea number, or a date (a day or an instant, written like a date)
percent_donesys:statusshare of linked items whose status category is done, 0–100
percent_checkeda checkboxshare of linked items that are checked, 0–100

The definition is checked when the property is created — the relation exists, the target has a type the function can read — and then fixed, like the type: a PATCH renames the rollup but keeps its calculation, because changing count for max of dates would change what the saved filters on it mean. A property a rollup depends on (its relation, its target) cannot be deleted before the rollup.

Archived linked items never count, nor items in the trash. With no linked item, count, count_values and sum are 0; the others are absent from properties, like an empty property. In a published read, only published linked items count, with their published values.

A rollup sorts and filters like a number (or a date, for min/max of dates): eq, neq, lt, lte, gt, gte, in, not_in, is_empty, is_not_empty. It is never grouped — a column per sum has no domain to name. Sorting or filtering on one costs a computation per item of the list, and no index can serve it: count about 60 ms per thousand items with ten links each. The value itself, shown on a page of 50, is cheap.

formula: computed from the item

A formula computes a value from the item's other properties: a total, a label, a follow-up date, “large quote?”. Like a rollup, it has no value of its own — the API computes it on every read, and refuses to write it (a 400, from a PATCH, a bulk edit or an import).

POST /workspaces/{workspaceId}/fields
{
  "key": "total",
  "name": "Total",
  "type": "formula",
  "config": { "formula": { "expression": "prop(\"Price\") * prop(\"Quantity\")" } }
}

The language is closed, and the API is what reads it — nothing typed in it becomes SQL: every literal is a bound value.

ElementWritten
Literals12, 3.5, "text" (or 'text'), true, false
Propertyprop("Name") — by name, key or id; or Title, Status, Created, Key
Arithmetic+ - * / — + also joins two texts
Comparisons== != < <= > >=, between two values of the same type
Logicand, or, not (or &&, ||, !)
Conditionsif(condition, then, else), empty(value)
Textconcat(a, b, …), length, lower, upper, format(value)
Numbersround(n), round(n, digits), abs, min(…), max(…)
DatesdateAdd(date, n, "days"), dateBetween(a, b, "days"), now(), today() — units years, months, weeks, days, hours, minutes

The result type is inferred on save — number, text, checkbox or date — and comes back in config.formula.resultType. A formula that doesn't type-check (a text multiplied, two if branches of different types, an unknown property) is refused with a message that says what and where. POST /workspaces/{workspaceId}/fields/check-formula returns the same verdict without saving anything: it is what the editor calls as you type.

A formula reads scalar properties: not an array (multi_select, multi_person, multi_file), not a relation, not a rollup or another formula. A box never checked is false. A computed date is written like a date: a day stays a day (YYYY-MM-DD), an instant stays an instant (UTC); today() is the UTC day.

What can't be computed is empty, never an error: a division by zero, a missing date, a date that would fall off the calendar. The value is then absent from properties, like an empty property, and no view fails. A numeric result is rounded to six decimals.

References are stored by id and shown by name: renaming a property it reads doesn't break the formula, which shows the new name. Deleting a property it reads makes it invalid: config.formula.error says so, the value is absent on every item, and views that sort or filter on it still answer. A formula is rewritten with a PATCH of config.formula — validated again, and refused if it would change its result type under a saved view that uses it.

A formula sorts and filters by what it returns — a number compares, a text can also be searched (contains, starts_with), a date filters like a date — and is never grouped. It is computed on the row itself, with no extra query. POST …/index-hints describes the expression index that would serve a sort on it, when it can have one — not if it reads the clock (now, today), the status, the key, the creation date, or shifts a date.

button: actions in one click

A button holds no value. It holds a list of actions (config.button) — set the status, write a property ({{me}}, {{today}}), assign, create an item from a template, comment, notify — the same ones as a list automation, run on the item as whoever clicks:

POST /workspaces/{workspaceId}/items/{itemId}/buttons/{fieldId}

The answer is the item as it is afterwards. The press is one write: a refused action fails the whole press, with its message. Its writes are the caller's — journaled under their name — so they trigger the list's automations. Requires the member role (items:write for an app). A button is never written, sorted, filtered nor grouped; its actions are validated when it is created or changed, and again on each press (a status that has since disappeared answers 409).

The four that depend on another table

person, multi_person, file and multi_file are valid only if the value names something that exists — a membership of this workspace, or a file of this workspace. That is checked when written, not when read.

A multi_file is file in the plural: an array of file ids, in the order they were attached, 50 at most. Upload first (POST /workspaces/{workspaceId}/files), then write the ids; a PATCH replaces the whole array, and removing an id does not delete the file — another card may still use it. Names and sizes are not copied into the card: resolve them with GET /workspaces/{workspaceId}/files?ids=….

How a number reads

A number property can carry a display format, in display.numberFormat: integer, decimal, percent, currency (EUR or USD) or progress (a bar from 0 to 100), with decimals for the styles that have them.

PATCH /workspaces/{workspaceId}/fields/{fieldId}
{ "display": { "numberFormat": { "style": "currency", "currency": "EUR", "decimals": 0 } } }

It is display only: the stored value stays the number you wrote, and sorting, filtering and validation use it. A percent value is the percentage — 12 reads "12 %". A progress bar over 100 is drawn full, not refused. Like the rest of display, it is replaced as a whole: send the placement and group along with it. An unknown style is refused on write; on read, style is an open string, and a client should render a style it does not know as a plain number.

Validation happens on write

A value that does not match its declared type is rejected at write time, with a 400. It never lands in the database.

This barrier cannot be moved to read time, and the reason is worth stating plainly: a badly typed value does not break its own row. It breaks the whole query of every view that casts that property — a single bad number in a number property makes an entire list fail to load, for everyone. So the one place to stop it is the door.

PATCH on a card merges properties: patching one property does not erase the others. Removing a property from a card is an explicit operation, not a side effect of omitting it.

Options and their colours

A select or multi_select may declare options — the permitted values. Leave it empty for free text.

It may also declare optionColors: a separate table, keyed by the option's value, drawn from the same eight-token palette as statuses. One palette, so a green tag is the same green as the green status next to it.

Two things follow from optionColors being a separate table rather than a richer option object:

  • the value written on a card is the string. That is what validation compares and what containment searches for. options says what is allowed, optionColors says how it looks;
  • colour compiles nowhere — not into sorting, not into filtering, not into validity. An entry naming an option that no longer exists is ignored; an option with no entry renders neutral. Nothing is inferred at display time.

A new option written without a colour gets one from its label: the same word always gets the same colour, in every list and every workspace. The API picks it once and stores it in optionColors, so it reads like any other colour, and you can change it or make it neutral afterwards. An option that already exists is never recoloured, and passing color: null when creating one keeps it neutral.

`config` is replaced wholesale

options and optionColors both live in config, and a write replaces the whole object. Send the colours with the options or they are gone. This is also why where a property is displayed lives in a different column entirely — otherwise moving a field in the sidebar would have silently wiped its options.

To add one option, or change the colour of one, without resending the rest, use POST /workspaces/{workspaceId}/fields/{fieldId}/options with { value, color }. It merges on the server, so two people adding a tag at the same time both keep theirs. Leaving out color keeps the current one (or, for a new option, gives it the colour of its label); null makes it neutral. In the app, this is what typing a new value into a select does: the menu offers Create "x", and each option has a palette button on hover.

System fields

Some things are addressable in a view without being registry properties: sys:title, sys:status, sys:order, sys:created_at and the like. sys:updated_by is the member who last modified the card: filter on it ("what Camille touched") or group by it, like a person property — it is recorded from whoever writes, and cannot be written.

The API publishes the list as systemFields on the collection, so no client has to keep its own copy of what the view compiler will accept.

A known sharp edge

A select sorts alphabetically, not in the order of its options. A view sorted "by priority" returns critical, high, low, normal.

It is known, it is documented, and it is not a bug to be fixed casually — the database index the sort relies on depends on that ordering. If you need priority order, encode it: 1 — Low, 2 — Normal.

Adding one costs nothing structural

Creating a property is one row in a registry. It does not alter a table, does not lock anything, and does not rewrite existing cards — cards without a value simply have no key for it.

Sorting or filtering by one at scale may want an index. The API will tell you which: POST …/index-hints reports what a given view would benefit from.

On this page