Skip to content

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.

For
EveryoneAdmins
Time
12 min

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.

RecipeTriggerSteps
Critical security incidentA record is creatednotify, task, mail
More than 3 open incidentsA condition holds, countnotify
Weekly report: measuresOn a schedule with a sourcenotify
Project status changesA record is changedif and else
New high risksA condition holds, every recordnotify
Mondays: open incidentsOn a schedule without a sourcenotify

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.

PartSetting
WhenA record is created · Sicherheitsvorfälle (security incidents)
Only ifSchwere (severity) is Kritisch (critical)
Step 1Notify Tom Keller, Bell and e-mail. Title Critical incident: {{record.title}}, text Detected on {{record.detectedAt}}. Please assess within one hour: {{record.link}}
Step 2Run an action Aufgabe anlegen (create task): Name Assess incident: {{record.title}}, Board 2, Priorität high, Zuständig Tom Keller (3)
Step 3Send mail to management@example.com, subject Critical security incident: {{record.title}}

Tells Jana and Tom when open incidents pile up, reminds them every week while it lasts, and says so once it is over.

PartSetting
WhenA condition holds · Sicherheitsvorfälle
What triggersthe count reaches a threshold, When the count is more than 3
OptionsAlso run when it stops holding on, Repeat every … days 7
ConditionStatus is one of Neu, In Analyse (new, in analysis)
Step 1Notify 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.

Every Monday at 08:00, one notification to Jana listing every measure whose review is due within the next two weeks.

PartSetting
WhenOn a schedule · Weekly, every 1 week on Monday at 08:00 · For every record from (optional) ISMS-Maßnahmen (measures)
Only ifErste Fälligkeit (first due date) until today + 14 days, and Status is not Überholt (obsolete)
Step 1Notify 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.

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.

PartSetting
WhenA record is changed · Projekte (projects) · Only on changes to Ampel (traffic light)
Only ifAktiv (active) is yes
Step 1If / else: If the record Ampel is Kritisch (red)
Step 2, in ThenNotify, 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 ThenRun an action Aufgabe anlegen: Name Escalation: {{record.title}}, Board 2, Priorität high, Zuständig {{record.projektleitung}}
Step 4, in ElseIf / else: If the record Ampel is Gefährdet (yellow)
Step 5, in its ThenNotify, 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.

Jana’s own automation: a note in the bell whenever an open risk becomes high, in impact or in likelihood.

PartSetting
WhenA condition holds · ISMS-Risiken (risks) · every record that starts to match
ConditionStatus is Offen (open), and a group with at least one of: Auswirkung (impact) at least 4, Eintrittswahrscheinlichkeit (likelihood) at least 4
Step 1Notify 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.

Jana’s own reminder at the start of the week, without looking at any data.

PartSetting
WhenOn a schedule · Weekly, every 1 week on Monday at 08:00 · For every record from (optional) none, once per date
Step 1Notify 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.