Tasks and Lists

Automations

An automation does something to a task by itself: When something happens, Only if the task matches some conditions, Then do these actions, in order. Set one on a Space, Folder or List from its settings page, under Automations. It acts on every task there, and on tasks added there from other Lists.

What an automation changes shows in a task's activity as "Automation: its name", and Undo takes it back along with the change that set it off. Each automation keeps a run log of its last 50 runs: what set it off, the task, and how each action went.

When

  • A task is created, or a form is sent.
  • The status, the assignees or the priority changes.
  • A custom field changes: any field, one field, or several. With one field, say what it changes From and To: anything, empty, filled in, or one of some values. A checkbox is checked or unchecked. With several, it runs when any of them changes, and changes to other fields leave it alone; test their values under Only if or with an If.
  • A comment is posted, a task is moved here, or all its subtasks are finished.
  • The due date arrives or passes.
  • A date arrives, or is some days away: the due date, the start date or a date field, on the day, a number of days before, or a number of days after. "3 days before Renewal date" runs at the start of that day, or at the date's time when it has one.
  • An SLA is due soon or breached (see SLAs), once each time a clock gets there.
  • A set time has passed since the task was made, since its status last changed, or since it last changed at all, counted in business hours under an SLA if you like. With Only if, that's "unassigned for an hour" (Assignee is empty) or "stuck in Review for two days". It runs once each time the wait starts again.
  • A set time comes round, every day or on chosen days of the week.
  • Someone clicks a button in a page.

Time-based automations are checked while Nocturnal is open. One that came due while it was closed runs once when it opens, and its run log says it ran late.

Only if

The same rules the Filter button builds: status, assignee, tags, dates, custom field values, SLA clocks and the rest. With no conditions, it acts on every task.

Then

  • Change the status, the priority or a date.
  • Assign or unassign people, and send a notification.
  • Assign by rule, from people you choose: the next in turn, or whoever has the fewest open tasks in the place the automation is on.
  • Post a comment, or add a subtask.
  • Add or remove tags.
  • Set a custom field.
  • Work out a custom field:
    • Copy another value: another field, or the task's due date, start date, name, status or priority. Dropdowns copy by option name.
    • Add a number: to a number field. An empty one counts as 0, so "add 1" counts things.
    • Move it by a number of days: for a date field.
    • A number of days from today: for a date field.
    • Text with field values: see below.
  • Set the due or start date from another date, moved a number of days.
  • Move the task to another List, or apply a task template.
  • Wait a number of minutes, hours or days, then go on (see below).
  • Do actions on the task's parent, or on each of its subtasks (see below).
  • An AI step, where a model decides within what you allow.

If… otherwise…

An If checks its own conditions when the automation gets to it, after the actions before it have run. If the task matches, it does what's under Then; if not, what's under Otherwise. Otherwise can hold another If, for "if this, otherwise if that". Set Check to Its parent to test the parent's fields instead; a task with no parent doesn't match. Ifs and Fors go three deep, and an automation has at most 50 actions, counting those inside them.

For example, priority from impact and urgency:

  • If Impact is High and Urgency is High: set the priority to Urgent.
  • Otherwise, if Impact is High or Urgency is High: set it to High.
  • Otherwise: set it to Normal.

The IT Service Desk template comes with this automation. It runs when Impact or Urgency changes, so changing a ticket's Category leaves a priority set by hand alone.

Wait

A Wait holds the actions after it for a number of minutes, hours or days, up to a year, then runs them. An If after it checks the task as it is by then. For example, when a ticket is resolved: wait 3 days; If the status is still Resolved, set it to Closed.

The wait is kept in the workspace, so it lasts through Nocturnal closing. One that ends while Nocturnal is closed runs once when it opens, and its run log says it ran late. The run log shows the Wait and when the rest runs, then a second run, "Waited 3 days after", with what ran then. The automation's row says how many runs are waiting. Turning the automation off, changing its actions or deleting it drops its waits, and so does deleting the task.

The parent and subtasks

  • For the parent does its actions on the task's parent. Nothing happens when there's none.
  • For each subtask does its actions on each of the task's subtasks, one level down, up to 200.

For example: when a subtask's status changes to complete, If its parent's Stage is Building, For the parent, set Stage to Ready. Or: when Client changes, For each subtask, work out Client by copying the parent's Client (Copy another value, Of its parent).

A Wait can't go inside a For. In the run log, each action done on the parent or a subtask names that task.

Field values in text

Comments, notifications, subtask names and worked-out text can hold a field's value: write the field's name in braces, like {Budget}, or use Insert a field. These work too:

WriteFor
{name}the task's name
{id}its ID, like NOC-12
{status}, {priority}its status and priority
{due}, {start}its dates
{list}its List
{assignees}who it's assigned to
{link}a link that opens it in Nocturnal

A field with one of those names wins. An empty field puts in nothing, and anything else in braces stays as written.

Limits

Automations can set each other off, five in a row at most, and never the same one twice for the same task. Imports, undo, redo and restoring from Trash don't set automations off.