Logic rules: react to inspection answers

If the answer is X, then show questions, ask for evidence, create a task or issue, or notify someone.

Web 3 min read Updated
In this article

In Algus, a logic rule makes a template react to an answer. For example: if the answer to "Are the brakes working?" is No, ask for a photo and create a repair task.

Add a logic rule

  1. Open the template in the editor.
  2. On the question, click Add Logic.
  3. Under If answer, pick a condition, for example is or is not, and the answer it applies to.
  4. Under then, pick what should happen. You can pick more than one action.
  5. Fill in the settings panel that opens for the action, if any.
  6. Save the template with Save or Update.

You can add several rules to one question, for example one for Fail and another for N/A.

Conditions you can use

The conditions depend on the question type:

  • Choice questions: is, is not, is selected, is not selected, is one of, is not one of.
  • Number, Slider and Rating: less than, equal to, greater than, between and similar.
  • CheckBox: checked, not checked.
  • Text questions: is, is not.
  • Signature: name is, name is not, name exists, does not exist.
  • Number with a temperature range: passes, fails.
  • Site Plan: is answered, is not answered.

Logic is not available on Date And Time, Media, User, Site, Resource, Instruction and Location questions.

Actions

ActionWhat happens during the inspection
Ask QuestionsFollow-up questions appear under the question. They stay hidden until the answer matches.
Require EvidenceThe inspector must add a note, media, or both, before completing the inspection.
Require TaskA task is needed for this answer. See below.
Require IssueAn issue is created for this answer. See below.
NotifyAlgus sends a notification to the people you choose.

Require Task

  • Create Task As: Manual means the inspector must create the task during the inspection. Auto means Algus creates it for them.
  • Generate Task On: create the task immediately when the answer is chosen, or On Completion of the inspection.
  • Set the Task Type, Title, Description, Priority, Labels and Assignee. Tick Assign to Same User to assign the task to the inspector.
  • Tick Use Answer Attachments to add the answer's photos and videos to the task.

Require Issue

  • Generate issue on: immediately, or On inspection completion.
  • Set the Issue Category, Issue Priority, title and description.
  • Site Selection: use the Inspection Site, or Manually Select Site. Resource Selection works the same way.
  • Tick Use Answer Attachments to add the answer's photos and videos to the issue.

Notify

  • Under Send a notification to, pick the users or groups.
  • Under When should the notification be sent?, choose immediately or On inspection completion.

Text you can insert in titles and descriptions

In task and issue titles and descriptions, you can type these codes. Algus replaces them when the task or issue is created:

CodeReplaced by
$question$The question text
$answer$The selected answer
$template$The template name
$document_number$The inspection's document number
$date$Today's date. Use $date$+1 for tomorrow or $date$-1 for yesterday.

Example

A forklift check asks "Are the brakes working?". For the answer No:

  1. Require Evidence asks for a note and a photo.
  2. Require Task is set to Auto, On Completion, with the title Brakes failed - $document_number$.
  3. Notify sends a message to the maintenance group immediately.

Test your rules

Click Preview in the editor and choose different answers. Check that the right follow-up questions appear. See Create a template from scratch.

Frequently asked questions

Yes. Add a rule to the follow-up question in the same way.

The issue is created as soon as the answer is chosen. Choose On inspection completion if you only want issues from completed inspections.

Was this article helpful?

Still need help? Contact support