Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Update the state handler script include

Log in to subscribe to topics and get notified when content changes.

Update the state handler script include

Update the ChangeRequestStateHandler script include with the new Complete state.

Before you begin

Role required: admin

About this task

The ChangeRequestStateHandler script include defines the states available for the Change Request state model.

Procedure

  1. Navigate to System Definition > Script Includes.
  2. Open the ChangeRequestStateHandler script include and modify the following.
    1. Add the following line to the top of the script in the Constants section:
      ChangeRequestStateHandler.COMPLETE = "complete";
    2. Add the following line as the last line of the function in the Initialize function:
      this.STATE_NAMES["-6"] = ChangeRequestStateHandler.COMPLETE;
  3. Click Update.
Feedback