Automations
Recipes
Six complete automations to copy, from a weekly report to a project traffic light with if and else. Each with every setting and the reason it is built that way.
These automations run at Brandt & Söhne, the machine builder from How automations work. Jana Brandt runs the IT and the information security, Tom Keller is the information security officer. The first four are tenant automations under SettingsOperationsAutomations, the last two are Jana’s own, under My profileAutomations.
Names of sources, fields and values come from the server and are in German for now. They are quoted as they appear, with the meaning in brackets.
| Recipe | Trigger | Steps |
|---|---|---|
| Critical security incident | A record is created | notify, task, mail |
| More than 3 open incidents | A condition holds, count | notify |
| Weekly report: measures | On a schedule with a source | notify |
| Project status changes | A record is changed | if and else |
| New high risks | A condition holds, every record | notify |
| Mondays: open incidents | On a schedule without a source | notify |
Critical security incident
Section titled “Critical security incident”Tells the information security officer within seconds when a critical incident is recorded, puts a task on the board and informs the management by mail. Build your first automation builds it step by step.
| Part | Setting |
|---|---|
| When | A record is created · Sicherheitsvorfälle (security incidents) |
| Only if | Schwere (severity) is Kritisch (critical) |
| Step 1 | Notify Tom Keller, Bell and e-mail. Title Critical incident: {{record.title}}, text Detected on {{record.detectedAt}}. Please assess within one hour: {{record.link}} |
| Step 2 | Run an action Aufgabe anlegen (create task): Name Assess incident: {{record.title}}, Board 2, Priorität high, Zuständig Tom Keller (3) |
| Step 3 | Send mail to management@example.com, subject Critical security incident: {{record.title}} |
More than 3 open incidents
Section titled “More than 3 open incidents”Tells Jana and Tom when open incidents pile up, reminds them every week while it lasts, and says so once it is over.
| Part | Setting |
|---|---|
| When | A condition holds · Sicherheitsvorfälle |
| What triggers | the count reaches a threshold, When the count is more than 3 |
| Options | Also run when it stops holding on, Repeat every … days 7 |
| Condition | Status is one of Neu, In Analyse (new, in analysis) |
| Step 1 | Notify Jana (Jana Brandt, who it runs as) and Tom Keller, Bell and e-mail. Title Many open security incidents, text empty |
Why the text stays empty. The steps run in three situations: when the count crosses 3, every 7 days while it stays above, and when it drops back. The standard text says which one it is and how many incidents are open, for example Mehr als 3 Datensätze aus „Sicherheitsvorfälle“ treffen zu, gerade sind es 4. A text of your own would read the same in all three. If you write one, {{count}} gives the current number.
Weekly report: measures
Section titled “Weekly report: measures”Every Monday at 08:00, one notification to Jana listing every measure whose review is due within the next two weeks.
| Part | Setting |
|---|---|
| When | On a schedule · Weekly, every 1 week on Monday at 08:00 · For every record from (optional) ISMS-Maßnahmen (measures) |
| Only if | Erste Fälligkeit (first due date) until today + 14 days, and Status is not Überholt (obsolete) |
| Step 1 | Notify Jana Brandt, who it runs as, Bell and digest. Title Reviews due in the next two weeks, text empty |
Why the date is relative. today + 14 days is worked out again on every Monday. A fixed date would have to be changed every week.
Why the title has no placeholder. All measures of one Monday arrive in one notification, which lists them by name. It keeps your title only when the title is the same for every measure. With {{record.title}} in it, the notification would be titled with the name of the automation and the number of measures instead.
Why the digest. The list is not urgent. The bell shows it on Monday morning, and a mail only follows if Jana has not read it after four working hours.
Project status changes
Section titled “Project status changes”Reacts to the traffic light of a project. Red: a mail to the project lead and an escalation task. Yellow: a note in the bell. Back to green: nothing.
| Part | Setting |
|---|---|
| When | A record is changed · Projekte (projects) · Only on changes to Ampel (traffic light) |
| Only if | Aktiv (active) is yes |
| Step 1 | If / else: If the record Ampel is Kritisch (red) |
| Step 2, in Then | Notify, Person from the record Projektleitung (project lead), Bell and e-mail. Title Project turned red: {{record.title}}, text Please add an escalation plan by tomorrow: {{record.link}} |
| Step 3, in Then | Run an action Aufgabe anlegen: Name Escalation: {{record.title}}, Board 2, Priorität high, Zuständig {{record.projektleitung}} |
| Step 4, in Else | If / else: If the record Ampel is Gefährdet (yellow) |
| Step 5, in its Then | Notify, Person from the record Projektleitung, Bell only. Title Project turned yellow: {{record.title}} |
Why the field under Only on changes to. Without it, every edit of a red project, a new description or a changed date, would send another escalation.
Why {{record.projektleitung}} stands alone. Alone in the field it gives the number of the project lead, which is what Zuständig needs. Inside a sentence it would give the name. Projects without a project lead get no notification from steps 2 and 5, and the history says Niemand, der die Meldung bekommen darf.
New high risks
Section titled “New high risks”Jana’s own automation: a note in the bell whenever an open risk becomes high, in impact or in likelihood.
| Part | Setting |
|---|---|
| When | A condition holds · ISMS-Risiken (risks) · every record that starts to match |
| Condition | Status is Offen (open), and a group with at least one of: Auswirkung (impact) at least 4, Eintrittswahrscheinlichkeit (likelihood) at least 4 |
| Step 1 | Notify me, Bell only. Title and text empty |
Why a condition and not a change trigger. A risk can become high in several ways: someone raises the impact, someone raises the likelihood, or a closed risk is opened again. The condition catches all of them, and a risk that stays high does not notify again. Risks that were already high when the automation was saved do not notify at all.
Mondays: open incidents
Section titled “Mondays: open incidents”Jana’s own reminder at the start of the week, without looking at any data.
| Part | Setting |
|---|---|
| When | On a schedule · Weekly, every 1 week on Monday at 08:00 · For every record from (optional) none, once per date |
| Step 1 | Notify me, Bell only. Title Start of the week: review open security incidents |
Why no source. The reminder is the same every week, whatever the data says. To be told only when there is something to do, combine the two ideas: the source Sicherheitsvorfälle with the condition “status is one of new, in analysis”. Then the Monday notification lists the open incidents, and there is no notification on a Monday without any.