File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Client-Side Components/UI Actions/Smart Assign to available member Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments