ServiceNow intelligent incident routing means getting each new incident to the right assignment group on the first try, without a service desk agent reading every ticket. The platform gives you three tools for it: assignment rules for condition-based routing, assignment data lookups for table-driven routing on fields such as category and configuration item, and Predictive Intelligence for routing based on the text of the incident. Most instances need the first two. Predictive Intelligence pays off when you have a large, clean history and a lot of incidents that arrive with only a short description.
This guide explains how each tool works, how they interact, and how to measure whether your routing is any good.
Why routing quality matters
Every time an incident moves from one group to another, the reassignment_count field on the task goes up by one, and the clock keeps running. Poor routing shows up as:
- High average reassignment count for a few groups
- A large share of incidents landing in a catch-all service desk queue
- SLA breaches where most of the elapsed time sits before the right group picks the ticket up
Measure this before you change anything. The script later in this guide gives you a baseline.
Assignment rules
Assignment rules live in the sysrule_assignment table. Open them from System Policy > Rules > Assignment.
Each rule has:
- Table, usually Incident
- Conditions, built with the condition builder
- Assigned to and Assignment group values to set, or a script
- Order, where a lower number wins when several rules match
The behaviour that catches people out: an assignment rule only fills empty fields. If a client script, record producer, template or business rule has already set the assignment group, the rule does nothing. When a rule "does not fire", look first for whatever else is writing to the field.
Assignment rules are a good fit when the routing decision depends on a few conditions that admins can read at a glance, for example "VIP caller and category is Hardware" or "configuration item support group is set".
Keep them maintainable:
- Give every rule a distinct order value. If two rules share an order, which one applies depends on condition matching rather than an explicit choice.
- Add one low-priority catch-all rule (high order number) that routes to the service desk, so nothing is left unassigned.
- Avoid scripts in rules unless the condition builder truly cannot express the logic.
Assignment data lookups
When you route on combinations of field values, a rule per combination becomes unmanageable. Data lookups solve that. The baseline Assignment Data Lookup table (dl_u_assignment) is available at System Policy > Rules > Assignment Lookup Rules.
Each row has matcher fields and setter fields:
| Matcher fields | Setter fields |
|---|---|
| Category | Assignment group |
| Subcategory | Assigned to |
| Configuration item | |
| Location |
A valid row needs at least one matcher and one setter. The definition that connects this table to Incident is in System Policy > Data Lookup Definitions, where you also choose whether it runs on form change, on insert and on update.
Two things to watch:
- Run on update overwrites manual choices. If the definition runs on update and an agent changes the category, the lookup can replace the group they picked. Decide deliberately whether that is the behaviour you want.
- Lookup rows are data, not configuration. They are not captured in update sets, so plan to move them with XML export or an import set. The update sets guide explains why, and the import set best practices cover loading them in bulk.
Data lookups are the right home for routing that the business owns. A process owner can maintain a spreadsheet of category, subcategory and group, and you load it.
Predictive Intelligence
Assignment rules and data lookups only work when the structured fields are filled in correctly. Many incidents arrive from email or the portal with a short description and little else. Predictive Intelligence closes that gap by training a classification model on your historical incidents and predicting the assignment group (or category) from text fields such as short description and description.
The workflow is:
- Create a classification solution definition on the Incident table, with the field to predict set to Assignment group and short description as an input field. Find it under Predictive Intelligence > Classification > Solution Definitions, or in the Predictive Intelligence Workbench on newer releases.
- Filter the training data to closed, correctly resolved incidents. Exclude groups that no longer exist and incidents that were reassigned many times, because those teach the model the wrong answer.
- Train the solution and review the precision and coverage for each group.
- Turn on predictions for new records and monitor them.
From the documentation:
- Classification training requires at least 10,000 records. ServiceNow recommends 30,000 to 300,000, and uses the most recent 300,000 when you provide more.
- Groups with too few examples in the training set (30 by default) are excluded, so the model can never predict them.
Check the Predictive Intelligence properties on your instance for the current limits. Data quality matters more than volume. If half of your history was routed to the service desk and then reassigned, the model will learn to predict the service desk. Retrain on a schedule as groups and services change.
How the three fit together
Use them in layers, not as alternatives:
| Situation | Best tool |
|---|---|
| A handful of clear business conditions | Assignment rule |
| Many combinations of category, subcategory, CI or location | Assignment data lookup |
| Incidents with only free text, high volume, good history | Predictive Intelligence |
| Logic that must overwrite an existing assignment | Before business rule, documented |
| Routing to individual agents by availability and capacity | Advanced Work Assignment |
The order in which assignment rules, data lookups and business rules run on the same record is not something to rely on across releases. Test the combination on your release, and avoid two mechanisms setting the same field for the same incidents. If you do need a scripted rule, follow the business rule best practices and keep it in one place. The auto-assign based on category script is a starting point, and pair it with clear assignee on assignment group change so a reassigned ticket does not keep the previous assignee.
If incidents are created by a flow, set the assignment in the flow or leave the fields empty for your rules to fill. Do not do both. The Flow Designer best practices cover how to keep that logic visible.
Measure routing with a script
Run this read-only script in System Definition > Scripts - Background on a development or test instance with a copy of production data. It lists, per assignment group, how many incidents were opened in the last 30 days, how many were reassigned at least once, and the average reassignment count.
// Read-only: reports routing quality per assignment group for the last 30 days.
(function () {
var since = gs.daysAgoStart(30);
var reassigned = {};
// Incidents reassigned at least once, per group
var ra = new GlideAggregate('incident');
ra.addQuery('opened_at', '>=', since);
ra.addQuery('reassignment_count', '>', 0);
ra.addAggregate('COUNT');
ra.groupBy('assignment_group');
ra.query();
while (ra.next()) {
reassigned[ra.getValue('assignment_group') || 'empty'] =
parseInt(ra.getAggregate('COUNT'), 10);
}
// All incidents and average reassignment count, per group
var ga = new GlideAggregate('incident');
ga.addQuery('opened_at', '>=', since);
ga.addAggregate('COUNT');
ga.addAggregate('AVG', 'reassignment_count');
ga.groupBy('assignment_group');
ga.query();
var lines = ['Group | Opened | Reassigned | Avg reassignments'];
while (ga.next()) {
var key = ga.getValue('assignment_group') || 'empty';
var name = ga.getDisplayValue('assignment_group') || '(no group)';
var total = parseInt(ga.getAggregate('COUNT'), 10);
var avg = parseFloat(ga.getAggregate('AVG', 'reassignment_count') || 0);
lines.push(name + ' | ' + total + ' | ' + (reassigned[key] || 0) +
' | ' + avg.toFixed(2));
}
gs.info(lines.join('\n'));
})();
Groups with a high reassigned share are where to look first. Open a sample of their incidents and ask which field would have told you the right group: that tells you whether the fix is a rule, a lookup row or a better trained model. GlideAggregate keeps this cheap even on large tables, which the GlideRecord query performance guide explains in more detail.
Run it again a month after each change so you compare like with like.
Routing checklist
- Baseline reassignment counts per group before changing anything
- One mechanism per field per incident type; document which one
- Assignment rules have unique order values and a catch-all at the end
- Data lookup definition settings (on insert, on update, on form change) chosen on purpose
- Lookup rows moved between instances as data, not through update sets
- Predictive Intelligence trained only on clean, resolved history, and retrained on a schedule
- Remove inactive groups from rules, lookups and training data
- Re-measure after every routing change
Good routing is mostly maintenance. The tools are simple; what keeps them accurate is a named owner who reviews the reassignment report each month and updates rules, lookup rows and training filters as the organisation changes.