Skip to content

Commit 9384d3c

Browse files
authored
Create README.md
1 parent 7a4e347 commit 9384d3c

File tree

1 file changed

+18
-0
lines changed
  • Client-Side Components/UI Actions/Smart Assign to available member

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**Use-case:**
2+
The primary goal of this UI Action is load-balancing.
3+
It assigns tasks based on the fewest currently Active tasks assigned to a member in a group.
4+
5+
**Example Scenario**:
6+
An assignment group has 10 members. Instead of assigning a new task to the whole group or any random member, the user/agent clicks on
7+
"Smart Assign" to find the member with the fewest currently Active tasks in the same group and assign the task to them.
8+
9+
**UI Action Name:**
10+
Smart Assign
11+
12+
**Condition**: !current.assignment_group.nil() && current.assigned_to.nil()
13+
14+
**How it works:**
15+
1. The code queries the Group members table to find every single user associated with the currently selected assignment group.
16+
If someone removes a previous assignement group and then clicks on Smart Assign button, they are shown an error message to choose an Assignment group.
17+
2. There is a loop on the task table. This loop uses GlideAggregate to count how many active records are assigned to a specific user.
18+
3. It tracks the user that has the lowest count of tasks assigned to them and assigns the current task to them.

0 commit comments

Comments
 (0)