Spunto CMS
Concepts

List automations and buttons

Rules of a list — "when the status becomes Done, then…" — that run inside the write that triggers them, under their own name, and buttons that run the same actions as whoever clicks.

An automation is a rule of a list: when something happens to one of its items, if the item matches some conditions, then do a few things. A button is a property that runs the same kind of actions, in one click, as whoever clicks.

In the app: List settings → Automations (admins only), and a button property created in Workspace settings → Properties.

When: the triggers

TriggerFires when…
item_createdan item is created in the list (its home list)
item_attachedan item from another list is attached to this one
status_changedan item of the list changes status — to any status, to one status (statusId), or to any status of a category (category: todo, doing, done)
property_changeda property of an item of the list changes — any change, or to one value (value; for an array property: when it gains that value)

"An item of the list" includes the items attached to it from other lists. Templates and archived items never trigger anything, nor does an import.

If: the conditions

Optional. The conditions are a view filter — the same predicates (eq, contains, is_empty…) you would use to filter a view, compiled by the same code. "If priority is high" is { "op": "eq", "field": { "fieldId": "<Priority>" }, "value": "high" }.

Then: the actions

Always on the item that triggered the rule, at most ten per rule:

ActionDoes
set_statussets the status (one of the list's statuses)
set_propertywrites a property: a value, or me / today (variable)
assignputs someone in a person property (replaced) or a multi_person one (added): a member, or me
create_itemcreates an item — from a card template of the list, or with a title — optionally as a subtask of the item
add_commentcomments on the item (Markdown, like a comment)
notifysends a notification with a message to members, to the people in a person property of the item, or to me

me is whoever made the change that triggered the rule (whoever clicks, for a button); today is their day, in their account's time zone.

POST /workspaces/{workspaceId}/automations
{
  "collectionId": "<Bugs>",
  "name": "Close",
  "trigger": { "kind": "status_changed", "category": "done" },
  "actions": [
    { "kind": "set_property", "fieldId": "<Closed on>", "variable": "today" },
    { "kind": "add_comment", "body": "Closed — thanks!" },
    { "kind": "notify", "fieldIds": ["<Followers>"], "message": "A bug you follow is closed." }
  ]
}

The rule is validated when it is written: the statuses of the list, the properties and their types (today only fills a date, me a person), the values, the members, the template, and the conditions. A rule that names something that does not exist is refused then, not on every item afterwards.

How it runs

  • Inside the write that triggers it. The answer to the PATCH that closes a bug already carries the date the rule wrote. If that write fails, the rule did not run either: nothing is half done.
  • Under its own name. The journal, the item's history, its comments and the notifications show "automation “Close”" — not the person, and not a key.
  • One level deep. What an automation writes triggers no automation. A rule that sets the status when the status changes does not loop.
  • At most 50 actions per write. A bulk edit of 60 items with a one-action rule runs 50; the other runs are logged as skipped.
  • A refused action cancels its rule, not your write. If a rule asks for a status that an attached item's home list does not have, your change goes through and the run is logged as an error, with the reason.
  • A rule whose target disappears turns itself off, and says why — a deleted status, a removed property, a member who left. Turning it back on revalidates it: fix it first.

Each rule keeps its last 50 runs — ok with the number of actions, error with the reason, or skipped:

GET /workspaces/{workspaceId}/automations/{automationId}/runs

Buttons

A button property holds no value. It holds actions — the same ones — in config.button, and runs them on the item as whoever clicks (details):

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

Its writes are that person's, journaled under their name — so they trigger the list's automations, exactly as if they had made each change by hand.

Who can

RoleApp scope
Read, write, turn on and off automations, read their runsadminnone — never available to an app
Press a buttonmemberitems:write

An automation writes under its own name, not under anyone's role or scopes, so no app can set one up: it would let an app write what its scopes refuse.

What is not there

No scheduled trigger ("every Monday", reminders) and no recurrence — there is no scheduler. No call to an arbitrary URL — that is what webhooks are for. No button block in a page body. See Limits.

On this page