12. Automation rules

A rule does a routine job for you: when something happens, and an optional condition is true, then Agile acts. Rules are written in plain sentences, no code.

This chapter describes features of Agile Boards Pro, the paid add-on.

Where to start: Settings > Team and setup > Automation

Step 1. Add a ready-made rule

  1. Open Settings > Team and setup and click Automation.
The Automation page: 1 **New rule (guided)** builds one step by step, 2 **Add a ready-made rule** starts from a template, 3 **Run history** lists every time a rule ran, 4 the list shows how often each rule ran and its last problem.
Figure 1. The Automation page: 1 New rule (guided) builds one step by step, 2 Add a ready-made rule starts from a template, 3 Run history lists every time a rule ran, 4 the list shows how often each rule ran and its last problem.
  1. Click Add a ready-made rule.
The templates: 1 close a parent when all its sub-issues are done, 2 assign new issues to someone, 3 tell the managers when an issue is blocked. The rule is added switched on and opens so you can change it.
Figure 2. The templates: 1 close a parent when all its sub-issues are done, 2 assign new issues to someone, 3 tell the managers when an issue is blocked. The rule is added switched on and opens so you can change it.
  1. Pick Tell the managers when an issue is blocked and click Add rule.
The rule that was added, already switched on: 1 its name, 2 when it fires, 3 the optional condition, 4 what it does, 5 Test this rule shows what it would do without changing anything.
Figure 3. The rule that was added, already switched on: 1 its name, 2 when it fires, 3 the optional condition, 4 what it does, 5 Test this rule shows what it would do without changing anything.

Step 2. Write your own rule

  1. Go back to Automation and click New rule (guided).
  2. Name the rule Bugs go to Priya.
  3. Under Issue types choose Bug, so the rule only looks at bugs.
  4. Under Assign to choose Priya Nair.
The guided rule: 1 the trigger (an issue is created, changes status, is blocked and more), 2 issue types the rule applies to, 3 an optional condition, 4 the action, 5 who to assign to, 6 the sentence Agile builds from your choices.
Figure 4. The guided rule: 1 the trigger (an issue is created, changes status, is blocked and more), 2 issue types the rule applies to, 3 an optional condition, 4 the action, 5 who to assign to, 6 the sentence Agile builds from your choices.
  1. Click the save icon.

Tip. Need an Otherwise branch or a test run? Save the rule, then use Open in the classic form.

Step 3. See it work

  1. Create a bug called Footer link is broken (here by script; in daily use you would use New on the Board).
  2. Return to Automation. The rule now shows how many times it ran and when.
The rules list after the bug was created: 1 the rule, 2 how many times it ran, 3 when it last ran.
Figure 5. The rules list after the bug was created: 1 the rule, 2 how many times it ran, 3 when it last ran.
  1. Click Run history.
Run history: every run lists the rule, the issue it touched and whether it worked, so you can see why something changed.
Figure 6. Run history: every run lists the rule, the issue it touched and whether it worked, so you can see why something changed.