Update the state handler script include
On this page
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
-
Navigate to All > System Definition > Script Includes.
-
Open the ChangeRequestStateHandler script include and modify the script as follows.
-
Add the following line to the top of the script in the Constants section:
ChangeRequestStateHandler.COMPLETE = "complete";
-
Add the following line as the last line of the function in the Initialize function:
this.STATE_NAMES["-6"] = ChangeRequestStateHandler.COMPLETE;
[Omitted image "NewStateTutUpdScrptIncl1.png"] Alt text: Modified script
-
-
Click Update.
Parent Topic:Tutorial: add a new change management state
Previous topic:Create an ACL
Next topic:Update the state model script include
Keep exploring.
Find another answer, or bring this documentation into your own tools.