feat: Dynamic ticket assignment #115 #121
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Dynamic ticket assignment #115
Dynamic Ticket Assignment Action:
This Action introduces a core automation feature to ensure tickets are assigned fairly based on live workload, picking the person in the team who is the least busy.
Action Inputs
incident).assignment_group).assigned_to).Action Outputs
Logic
This action ensures fair workload distribution by reliably finding the most available person within a target group.
getValue('sys_id')method to prevent data type errors._next()iterator pattern. This ensures that even if only one member is excluded, their Sys ID is correctly extracted and placed into a list, regardless of the Flow Designer input type structure.sys_user_grmembertable to get the Sys IDs of all users in the Target Group.sys_usertable using that list to filter for only those users who are currently marked as Active and NOT in the Excluded Members list.minCount) and assigns the ticket to that user.Assigned User Sys IDand the finalAssignment Count(explicitly cast to an integer to avoid0.0outputs).Data Setup
All tests were performed using the following simplified data structure:
Test Use Cases (Positive & Negative)
Success Status: falseand the error "No eligible active members found...".