{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":31868,"path":"it-service-management/change-management/t_UpdateStateHandlerScriptInclude.md","title":"Update the state handler script include","bundle":null,"doc_type":null,"release":"australia","body":"\n# Update the state handler script include\n\nUpdate the ChangeRequestStateHandler script include with the new **Complete** state.\n\n## Before you begin\n\nRole required: admin\n\n## About this task\n\nThe ChangeRequestStateHandler script include defines the states available for the Change Request state model.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Script Includes**.\n\n2.  Open the ChangeRequestStateHandler script include and modify the script as follows.\n\n    1.  Add the following line to the top of the script in the **Constants** section:\n\n        ```\n        ChangeRequestStateHandler.COMPLETE = \"complete\";\n        ```\n\n    2.  Add the following line as the last line of the function in the *Initialize* function:\n\n        ```\n        this.STATE_NAMES[\"-6\"] = ChangeRequestStateHandler.COMPLETE;\n        ```\n\n    \\[Omitted image \"NewStateTutUpdScrptIncl1.png\"\\] Alt text: Modified script\n\n3.  Click **Update**.\n\n\n**Parent Topic:**[Tutorial: add a new change management state](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/change-management/t_AddNewStateTutorial.md)\n\n**Previous topic:**[Create an ACL](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/change-management/t_CreateNewACL.md)\n\n**Next topic:**[Update the state model script include](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/change-management/t_UpdateStateModelScriptInclude.md)\n\n"}}