Administer > Scheduled maintenance > Adding Scheduled Maintenance data using expressions

Adding Scheduled Maintenance data using expressions

You can use expression syntax to auto-fill fields in the Incident record, change request, or Request Fulfillment request generated by a Scheduled Maintenance task.

Expressions run to populate data fields after Scheduled Maintenance supply simple information in the Incident record, change request, or Request Fulfillment request. You can use expressions to override the category, assignee, or another field.

Add data using expression syntax

Applies to User roles: System Administrator

To add data using expression syntax:

  1. Click System Administration > Base System Configuration > Scheduled Maintenance > Scheduled Maintenance Tasks..
    Service Manager displays a blank Scheduled Maintenance form.
  2. Click Search.
  3. Click the selected task to view it in the Scheduled Maintenance Tasks form.
  4. Click the Details tab.
  5. In the text box labeled Use These Expressions to Fill the Task....., type expressions that set selected fields to new values. The Incident record, change request, or Request Fulfillment request are referred to as $L.file in these expressions. For example, to set the subcategory and priority code on incident records, add these two lines of expression code:
    subcategory in $L.file="application"
    priority.code in $L.file="4"
    where application is the name of the subcategory and 4 is the priority code.
  6. Click Save.