Update the state handler script include

task australia Updated Sep 10, 2026 1 min read t_UpdateStateHandlerScriptInclude.md
Raw file servicenow.com

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 All > System Definition > Script Includes.

  2. Open the ChangeRequestStateHandler script include and modify the script as follows.

    1. Add the following line to the top of the script in the Constants section:

      Text
      ChangeRequestStateHandler.COMPLETE = "complete";
    2. Add the following line as the last line of the function in the Initialize function:

      Text
      this.STATE_NAMES["-6"] = ChangeRequestStateHandler.COMPLETE;

    [Omitted image "NewStateTutUpdScrptIncl1.png"] Alt text: Modified script

  3. Select Update.

Parent Topic:Tutorial: Add a new change management state

Previous topic:Create an ACL

Next topic:Update the state model script include

Search documentation
Search document titles and file paths on the australia branch