Skip to content

Team rules

View as Markdown

A rule changes a team’s tasks and issues when something happens: tag new issues for triage, thank people when an item is done, close issues nobody has touched for a month. Rules live in Team settings, Rules.

  • Team admins make and change their team’s rules. Workspace admins can open and change every team’s, private teams included.
  • Members of the team can see its rules and their run logs.
  • Guests don’t see rules.

Choose New rule, then:

  • When (one event): an item is created, its status changes to a status, a field changes (priority, assignees, tags, due date or project), a date arrives (the due or start date, on the day or a few days before), or it has had no changes for a number of days (no edit and no comment).
  • If all of these (optional, up to 10): type, project, status, priority, tag, assignee.
  • Then (one or more, up to 10): set the status or priority, add an assignee or a tag, add a comment (posted exactly as written), notify someone, or archive it.

Notify reaches the assignees, the reporter, the team’s admins or a member you pick. They hear in termynl, one line per item, and by email when their own notification settings send email for changes: one email per rule each time it runs, listing the items. Nobody is told about an item they can’t open, and guests never see the rule’s name.

Press Ctrl+T to test: it counts the items that match now and changes nothing. Save and turn on (Ctrl+Enter) needs a test first; Save, off keeps it as a draft. Esc cancels.

A rule that archives items or sets a done or cancelled status, or one that notifies people about more than 25 items, asks you to confirm the number of items that match now when you turn it on. If the number has changed by then, you’re asked again.

  • A rule runs as its owner: whoever made it, last turned it on, renamed it or changed what it does. It acts with the owner’s access, checked each time, and its changes show as “owner via rule name”.
  • A rule’s own changes never start another rule.
  • Date rules act at 9:00 the owner’s time on the day; no-change rules are checked every hour; the others run shortly after the change.
  • A change is handed to rules as part of saving it, so a restart never makes a rule miss one. Each rule action still runs at most once.
  • Items brought in by an importer don’t start rules while they are imported. Later changes to them do.
  • A workspace runs at most 1,000 rule actions an hour (skipped runs don’t count). The rest wait their turn and show as queued in the run log; past 20,000 waiting, new runs are skipped and logged.

In the list, arrows move between rules, Space turns one on or off, Enter opens it and l shows its run log. The run log keeps 90 days: when it ran, on which item, and whether it was done or skipped (and why). A run that can’t act, for example because the owner lost access or the item moved, is skipped and not retried.

If a rule’s owner leaves the workspace or the team, loses write access, or is no longer an admin of the team, the rule turns off and the team’s admins are told. An admin can Take over the rule; it then runs with their access.

list_rules, get_rule_runs and check_rule read rules; create_rule, update_rule and delete_rule change them, with your access. Tyn drafts rules for you to check: it never saves, turns on, changes or deletes one. Open Team settings, Rules to do that yourself.