Assignments and ToDos
Give a Record to a person by hand or by rule, and track it as a ToDo.
Assigning a Record to a user creates a ToDo for them that links to the Record. The ToDo list at /desk/todo is each user's work queue. A ToDo is seen only by its assignee, the person who assigned it, its creator and System Managers.
Assign by hand
- On a form, use Assigned To in the sidebar and pick one or more users.
- On a list, tick rows and choose Actions, then Assign To. Clear Assignment cancels the ticked Records' assignments. Both run as background jobs.
- An automation can assign with its Assign step.
The assignee gets a bell notification. When they finish, they Close the ToDo from the sidebar.
Assignment Rules
An Assignment Rule assigns Records of one RecType when they are saved. Only a System Manager creates them, at /desk/assignment-rule/new.
Example: share support tickets
| Field | Value |
|---|---|
| RecType | Issue |
| Description | {{ doc.subject }} |
| Assign Condition | doc.status == "Open" |
| Unassign Condition | doc.status == "Closed" |
| Close Condition | doc.status == "Invalid" |
| Rule | Round Robin |
| Users | asha@acme.com, ben@acme.com, chen@acme.com |
| Assignment Days | Monday to Friday |
Each new open Issue goes to the next person in the list. A closed Issue loses its assignment. An Issue marked Invalid has its ToDo closed.
Rules
| Rule | Picks |
|---|---|
| Round Robin | The next user in order |
| Load Balancing | The user with the fewest open ToDos for this RecType |
| Based on Field | The User named in a field of the Record, such as owner |
| Weighted Distribution | Users in proportion to their Weight. A user with weight 2 gets twice as many as one with 1 |
Fields
| Field | Use |
|---|---|
| Priority | Higher rules are tried first. The first rule that assigns wins |
| Description | The ToDo's text, a Jinja template with the Record as doc |
| Assign, Unassign, Close Condition | Expressions on the saved Record |
| Assignment Days | Weekdays the rule runs, in the site's time zone. Empty means every day |
| Disabled | Turns the rule off |
Two nodes picking at the same moment take consecutive turns, so Round Robin never gives two Records to the same person by accident.
Installed apps can narrow who a rule may pick. For example, an app can drop users who are on leave.