Automatically assign a record according to one or more conditions in an assignment rule. Assignment rules are designed to run at the time you open a record.

Before you begin

Role required: assignment_rule_admin or admin

Procedure

  1. Navigate to All > System Policy > Rules > Assignment.
  2. Select New.
  3. On the form, fill in the fields.
    Table 1. Assignment rule form
    Field Description
    Name The descriptive name for the assignment rule.
    Active Option to activate the assignment rule.
    Applies to
    Table

    The table with the records that the assignment rule applies to.

    The list shows only tables and database views that are in the same scope as the assignment rule. If you select a custom table that extends the task table, and for the assignment rule to work properly, you must clear the instance cache by navigating to https://<instance_name>.service-now.com/cache.do.

    Important: Clearing the system cache can affect overall performance, and degrade system response times. Do not run cache flushes during business hours, and do not trigger cache flushes automatically.
    Conditions The conditions under which the assignment rule applies.
    Assign to
    User The user the event is assigned to.
    Group The group the event is assigned to.
    Script
    Script A script to specify advanced assignment rule functionality. The current.variable_pool set of variables is available.
    Note: Make sure the input in the script is correct, and that the input type matches the field type in the Assignment Rule script. For example, if the assignment rule script sets the value of an Integer field, and the value in the script is set to String, the assignment rule may yield unexpected results.
    Optional fields
    Match conditions
    Any
    If any of the conditions are met, assignment rule applies.
    All
    If all the conditions are met, assignment rule applies.
    Execution Order The order in which the assignment rule is processed. If assignment rules conflict, a rule with a lower-order value takes precedence over a rule with a higher value. If the order values are set to the same number, the assignment rule with the first matching condition takes precedence over the others. Only the first assignment rule with a matching condition runs against a record.

Example: Condition editor

In this example, the condition statement automatically assigns any incident opened in the Network category to the system administrator in the Network assignment group.
Figure 1. Applies To
Applies To
Figure 2. Assign To
Assign To