Tutorial: add a new change management state
This tutorial provides an example of adding a new state to the existing state model.
Before you begin
Role required: script_include_admin, ui_policy_admin, ui_action_admin, or admin
About this task
Consider the following scenario:
Based on your organization's requirements, you must add a new state, Complete, between the existing Implement and Review states. You must also add the ability to decide if the Review state is needed.
Perform the following steps:
Procedure
Open the Change Request form.
Create a new choice
Create a new choice for the change request state.- Create a custom field
Create a custom choice field to indicate whether a change request must go through the Review state. - Add a UI policy
Add a UI policy to display the Needs review field for Normal change requests when it reaches the Complete state. - Create an ACL
Create an access control rule (ACL) to avoid the Needs review field from being modified after it has been set. - Update the state handler script include
Update the ChangeRequestStateHandler script include with the new Complete state. - Update the state model script include
Update the ChangeRequestStateModel_normal script include to add new functions for the Complete state. - Create a UI action
Create a UI action to display a button on a change request for the Complete state. - Create a process flow record
Create and add a process flow record for the Complete state. The process flow formatter displays at the top of the Change Request form. - Update the change request workflow
Update the change request workflow to reflect the addition of the Complete state.
Parent Topic:Reference section for Change Management