Appearance
Rules
Rules do things by themselves on a case type's cases: give someone a task a week before a hearing, email a supervisor the day after a court deadline passes, take an action, or make a letter. They are part of the case type, in the Rules section of the case type designer.
What a rule counts from
| Counts from | Example |
|---|---|
| A key date not yet done | 60 days before the limitation date |
| A time limit's due date | 5 days before the response is due |
| A date field on the case | 3 days before "Advice needed by" |
| The case reaching a status | 10 days after reaching "Awaiting clarification" |
| Something happening on the case | Straight after a message from the client portal |
| A task's due date, for each task not done | 2 days after a task is due, to escalate it |
| A date in a list, for each row | 30 days before a client's authority runs out |
The events a rule can respond to are: the case being opened, the case being assigned, a document or a new version being added, a note being added, an email arriving, a message from the client portal, an approver deciding on a document, a document moving to another state under an information standard (such as being published), documents being issued in a transmittal, and a register entry the case names reaching a warning or alert level, or having an alert raised (readings).
A rule counting from tasks' due dates fires once for each task not yet done, and again if the task's date moves; a task done in time is left alone. A rule counting from a date in a list fires once for each row with that date, such as each authority or consent in a "Client authorities" list, and again if the date changes. Only lists the case keeps itself count, not ones kept on a register entry.
A key date counts until someone marks it done. A time limit's date moves if it is extended or paused, and the rule fires again for the new date.
When it fires
Choose the Number of days and whether before or after the date. 0 is the day itself.
- Rules on dates run from 7am UK time, like the daily email.
- Rules on events and statuses with 0 days fire straight away, within a quarter of an hour, at any time of day, because they answer someone who has just done something.
Each rule fires once for each date: once per key date, once per due date of a time limit (again if the date moves), once per value of a date field, and once for each event. It fires on its day, or up to 14 days late if the system could not run, so a new rule does not fire for every old case, and a reminder before a date never fires after it.
Rules never fire on closed cases. Each is checked again as its turn comes, so a rule due at the same moment as another that closes the case, or moves it out of the rule's statuses, does not fire.
Only sometimes
- Only while the case is: tick open statuses, or leave them all unticked for any status that is not closed.
- Only when the case's details match?: a condition on any detail, built as a field's show-when rule is, such as only when the outcome is Settled. It is checked when the rule would fire; until it matches, the rule waits while its date is in reach, so filling in a detail later can still set it off.
What it does
A rule must do at least one of these:
- Tasks it creates, for whoever the case is assigned to or for nobody, due a number of working days later
- Emails it sends, to the case's assignee, everyone in a role, or fixed addresses, with placeholders. Nobody acts when a rule fires, so it cannot email "the person taking the action" or use
{{user.name}}. - Action it takes: one of the workflow's actions, taken as if someone took it with nothing to say, with everything the action does (its tasks, letters and emails). Actions that need a reason or a required key date, or that cannot be taken from the statuses the rule works in, cannot be chosen.
- Letters it makes: only templates that ask nothing when they are made, since nobody is there to answer. Its emails can attach them.
If the action or a letter is refused when the rule fires (the case has moved to another status, a required detail is empty, there is no conflict check), the rule still creates its tasks and sends its emails, and the case history says what was not done and why.
Rules never set each other off
Everything a rule does is marked as the rule's in the case history, shown as "A rule", and rules on events ignore what other rules did. A rule's action moving a case on never triggers another rule, so rules cannot loop. Rules on emails received also ignore automatic replies, such as an out-of-office, so they cannot loop with someone else's system either. What another system does through the public API counts as much as what a person does.
Old cases
Rules belong to the case type version a case was opened under, like its workflow. A new rule applies to cases opened after it was saved, and never fires for events that happened before.
In the history
Each firing is in the case's history with no person as the actor: "Prepare for the hearing: done automatically for Hearing on 4 March 2026. Added 1 task. Sent 1 email."
Examples from the packs
| Pack | Rule |
|---|---|
| Legal | "Limitation date approaching", 60 days before a limitation date |
| Legal | "Court deadline passed", the day after a court deadline not marked done |
| Legal | "Reply to a message from the client portal", straight after one arrives |
| Counter-fraud | "Time limit for prosecution approaching", 30 days before, with a task and an email to the supervising officer |
| Information rights | "Response due soon", 5 days before the response is due |