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
- Open the template in the editor.
- On the question, click Add Logic.
- Under If answer, pick a condition, for example is or is not, and the answer it applies to.
- Under then, pick what should happen. You can pick more than one action.
- Fill in the settings panel that opens for the action, if any.
- 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
| Action | What happens during the inspection |
|---|---|
| Ask Questions | Follow-up questions appear under the question. They stay hidden until the answer matches. |
| Require Evidence | The inspector must add a note, media, or both, before completing the inspection. |
| Require Task | A task is needed for this answer. See below. |
| Require Issue | An issue is created for this answer. See below. |
| Notify | Algus 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:
| Code | Replaced 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:
- Require Evidence asks for a note and a photo.
- Require Task is set to Auto, On Completion, with the title
Brakes failed - $document_number$. - 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.