Overview
Assignment rules eliminate manual ticket routing by:- Automatically assigning tickets when they match conditions
- Distributing workload fairly among agents
- Routing tickets based on expertise and availability
- Reducing response times
- Ensuring no tickets slip through the cracks
How Assignment Rules Work
Assignment Rule Components
Each assignment rule consists of:Basic Information
- Name: Unique identifier for the rule
- Description: Purpose and scope of the rule
- Enabled: Active/inactive status
- Priority: Order of evaluation (higher priority rules checked first)
Assignment Conditions
- Assign Condition: When to assign tickets
- Unassign Condition: When to remove assignments (optional)
- Assignment Days: Which days this rule is active
Routing Configuration
- Rule Type: How to select agents (Round Robin, Load Balancing, etc.)
- Assignees: List of agents eligible for assignment
- Last User: Track last assigned agent for Round Robin
Team Integration
- Link assignment rule to a team
- Team members automatically become assignees
- Team-specific routing logic
Creating an Assignment Rule
Ticket Routing Methods
Choose how tickets are distributed among assignees:Round Robin
Round Robin Distribution
Tickets are assigned to agents in rotation order:
- First ticket → Agent A
- Second ticket → Agent B
- Third ticket → Agent C
- Fourth ticket → Agent A (cycle repeats)
Load Balancing
Load Balancing
Assigns to the agent with fewest open tickets:
- Agent A: 5 open tickets
- Agent B: 3 open tickets
- Agent C: 7 open tickets
- New ticket → Agent B
Based on Field
Field-Based Assignment
Assign based on a ticket field value (e.g., region, product, language):
- Ticket field “Product” = “Mobile App” → Mobile Team Agent
- Ticket field “Region” = “EMEA” → EMEA Support Agent
The actual routing methods available depend on your Frappe Helpdesk configuration and any custom Assignment Rule types.
Assignment Conditions
Define when tickets should be auto-assigned:Visual Condition Builder
- Simple Condition
- Multiple Conditions (AND)
- Multiple Conditions (OR)
- Complex Conditions
Condition Examples
High priority tickets
High priority tickets
Specific ticket type for a team
Specific ticket type for a team
Unassigned tickets only
Unassigned tickets only
New tickets from specific customers
New tickets from specific customers
Unassign Conditions
Optionally remove assignments when conditions are met:When to Use Unassign
- Ticket priority is lowered
- Ticket is reassigned to different team
- Ticket status changes to “On Hold”
- Custom business logic requires reassignment
Example Scenarios
Priority Downgrade
Unassign when priority changes from “High” to “Low”
Team Change
Unassign when ticket moves to different team
Status Change
Unassign when status becomes “On Hold”
Reassignment
Unassign before applying different assignment rule
Assignment Days
Control when assignment rules are active:Tickets created on inactive days remain unassigned until the next active day, or can be manually assigned.
Managing Assignees
Adding Assignees
Removing Assignees
- Click the X next to agent name
- Agent is removed from future assignments
- Existing assignments to that agent remain unchanged
Last Assigned Indicator
For Round Robin routing:- A badge shows which agent received the last assignment
- Helps visualize rotation state
- Resets when assignee list changes
Team-Based Assignment
Integrate assignment rules with teams:Team Assignment Flow
Team Member Restrictions
When a ticket’s team changes:- If assigned agent is NOT in new team
- AND team has assignment rule with assignees
- Agent is automatically unassigned
- New assignment rule can then apply
Priority & Ordering
When multiple assignment rules could match:- Rules are evaluated in priority order (highest first)
- First matching rule wins
- Lower priority rules are skipped
- If no rules match, ticket remains unassigned
Setting Priorities
Notifications
Agents receive notifications when assigned:- In-app notification: Bell icon notification
- Email notification: Optional email alert
- Real-time update: Instant notification if logged in
Notification Content
- Who assigned (“System” for auto-assignment)
- Ticket ID and subject
- Ticket priority and type
- Link to open ticket
Manual Override
Assignment rules don’t prevent manual assignment:- Agents can reassign tickets at any time
- Manual assignments override auto-assignment
- Unassign conditions may still trigger
Manual assignments are tracked in ticket history, showing both auto and manual assignments.
Best Practices
Start simple
Start simple
Begin with basic Round Robin for your main team. Add complexity as you learn what works.
Use priority correctly
Use priority correctly
Set priorities to ensure VIP or urgent tickets are handled by the right rules first.
Balance assignee lists
Balance assignee lists
Don’t put all agents in all rules. Specialize based on expertise or capacity.
Monitor workload
Monitor workload
Regularly check if assignments are actually balanced. Adjust routing method if needed.
Set assignment days appropriately
Set assignment days appropriately
Match rule active days to agent schedules. Don’t assign to offline agents.
Test before enabling
Test before enabling
Create test tickets to verify assignment logic before enabling rules in production.
Document your rules
Document your rules
Use clear descriptions explaining why each rule exists and what it does.
Common Scenarios
Scenario 1: Basic Support Team
Scenario 2: Priority-Based Routing
Scenario 3: Specialist Assignment
Troubleshooting
Tickets not being auto-assigned
Tickets not being auto-assigned
- Check if assignment rule is enabled
- Verify conditions match ticket properties
- Ensure current day is in assignment days
- Confirm assignees are added to rule
- Check if higher priority rule is catching tickets first
Wrong agent receiving tickets
Wrong agent receiving tickets
- Review routing method (Round Robin vs Load Balancing)
- Check assignee list for unexpected agents
- Verify conditions aren’t too broad
- Look for manual assignments overriding auto-assignment
Assignments being removed
Assignments being removed
- Check unassign conditions
- Verify ticket team matches assignee’s teams
- Review team member restrictions
- Check for conflicting automation
Unbalanced workload
Unbalanced workload
- Switch from Round Robin to Load Balancing
- Review agent capacity and current assignments
- Consider splitting into multiple rules by priority
- Check if some agents have days off
API & Automation
Assignment rules can be managed programmatically:Assignment Rules use the Frappe Framework’s built-in Assignment Rule doctype, extended for helpdesk-specific features.
Performance Considerations
- Assignment rules run automatically on ticket save
- Conditions are evaluated in priority order
- Multiple tickets can be assigned in batch
- Assignee selection is fast (simple rotation or count query)