OBLYTECH Logo
OBLYTECH Logo

ServiceNow Change Model States and State Field Policies

A change model sets the states a change request moves through, such as New, Assess and Authorize. State field policies attach to each state and decide which fields must hold a value, or stay locked, while a request sits there. Both are set on the change model and enforced on forms, scripts and API updates.

What a change model state controls

Each state is a stage where a specific kind of work happens. A normal change moves through New, Assess, Authorize, Scheduled, Implement, Review and Closed. A standard change is pre-authorized, so it goes from New straight to Scheduled. An emergency change skips Assess but still needs Authorize before it can be scheduled.

Each state is the right place to decide what the person working the request should record at that point. An Authorize state collects a decision and a Review state confirms the outcome. A state that asks for information belonging to a later step can push people to enter placeholder values, which makes the record harder to trust. Where a field is only meaningful at a later step, consider leaving it optional until that state.

For the state values a request can hold on the base system, see the change request lifecycle states guide. For how a model pairs with standard templates, see the change models and standard change templates guide.

Adding states and transitions

Open All > Change > Administration > Change Models, select the model, and work in the Model States related list. Adding a state requires the change_manager role. The Initial State option marks where a new request begins, and the first state added to a model is selected as initial automatically.

Each state is a record of its own. State field policies and transitions attach to the state, so copying a model also copies the policies on each of its states.

Expand a state and add a transition with a From state, a To state and an Automatic Transition option. With Automatic Transition on, the request moves forward without someone editing its State field by hand, once the transition’s conditions are met.

Conditions are set in the Requires field. The options are Mandatory Fields, which names fields that must hold values before the move, and Transition Condition, which uses a condition builder, and Transition Script, which uses a script. Editing a script condition needs the model script editor role; without it the script field is read-only.

Conditions do not move a request by themselves. A process must evaluate the model. You can attach a Workflow Studio flow that runs the Evaluate Change Model action at defined points, or a business rule that evaluates the model on each update. The base system includes a business rule of the second kind on the change request table. The system checks the automatic transitions for the current state and moves the request to the next state once its transition conditions are met. Elapsed time plays no part in that decision.

Reusable conditions can be saved as condition types. Creating a type does not switch a transition on; you still select it in the Requires field.

How state field policies work

A state field policy controls one field in one state. To lock or require three fields at the same state, add three policies. Each policy has these fields:

  • Name: the change request field, chosen from the table the model uses.
  • Mandatory: requires a value while the request is in this state.
  • Read Only: blocks changes to the field while the request is in this state.
  • Application: the scope that owns the policy, used for update set tracking.
  • Active: applies the policy, and is selected by default.

A field can be mandatory, read-only, or both for the same state. Policies live on the model state record, in the State Field Policies related list, and adding one requires write access to the change model. Because the rule sits on the model, each request built on it follows the same rule, with no separate UI policy or client script on the change request table.

Enforcement and timing

The platform applies policies on the form and enforces them on the server when a request is created or updated. Scripts, integrations and API calls are covered as well.

A refused save names the problem. A mandatory failure lists the empty fields, and a read-only failure lists the locked fields. When testing, trigger one of these on purpose to confirm the policy is active on the right state.

Timing is the detail that catches testers. When a request moves into a new state, a field is blocked when it is read-only in both the previous and the new state. A field that becomes read-only in the new state can still be changed in the same save that performs the move. A lock therefore shows from the saves that follow. Test it from a request that already sits in the locked state.

Two smaller exceptions: record-preset values are not blocked by read-only policies at creation, and an empty field that is both mandatory and read-only can take one value, entered once.

Mandatory policies and the managed transition condition

When you tick Mandatory on a policy, the platform adds a transition condition named State Field Policy Managed, of the Mandatory Fields type, to each transition that leads into that state. The condition blocks the move until the field has a value. You do not create it yourself.

The platform keeps the condition in step with the policy:

  • Changing the field on the policy updates the condition.
  • Clearing Mandatory, or deleting the policy, removes that field from the condition. When no fields remain, the condition is deleted.
  • Changing a transition’s destination rebuilds the managed condition for the new target state.
  • When several states lead into the same target, the requirement stays in sync across each of those transitions. A field mandatory at Authorize applies to both a New to Authorize move and an Assess to Authorize move, so you adjust neither separately.

Do not edit a State Field Policy Managed condition directly. Change the mandatory list through the state field policies on the destination state instead, since the platform keeps the condition in step with them.

The rules that apply to a request combine three groups: the policies for the current state and the destination state, the Mandatory Fields transition conditions on the move, and the field policies carried by the change template the request was created from. When a save refuses and the state policies look correct, check the other two groups before concluding the policy is wrong.

Default state field policies in the base system

The Change Management – Change Model Foundation Data plugin ships policies for the base models. The defaults make fields mandatory and make none read-only. You can view, edit or deactivate them in the State Field Policies list on each model state.

Model State Mandatory fields
Normal Assess, Authorize, Scheduled, Implement, Review Assignment group
Normal Closed Assignment group, Close code, Close notes
Standard Scheduled, Implement, Review Assignment group
Standard Closed Assignment group, Close code, Close notes
Emergency Authorize, Scheduled, Implement, Review Assignment group
Emergency Closed Close code, Close notes
Unauthorized Change Review Assignment group
Unauthorized Change Authorize Assignment group, Configuration item, Short description, Description
Unauthorized Change Closed Assignment group, Close code, Close notes
Change Registration Review Assignment group
Change Registration Closed Assignment group, Description, Close code, Close notes
Change Registration Canceled Description
Cloud Infrastructure Authorize Assignment group
Cloud Infrastructure Closed Configuration item, Short description, Planned start date, Planned end date, Close code, Close notes

Each Closed state asks for a close code and close notes, so the outcome is recorded before the request ends. The Emergency model drops Assignment group from its Closed state; add a policy there if you want that field enforced.

Setting up a state with field policies

  1. Confirm the change model and its states already exist, because policies attach to a model state.
  2. Open the change model and select the state in the Model States related list.
  3. In State Field Policies, select New. Choose the field in Name, tick Mandatory or Read Only (or both), leave Active selected, and submit.
  4. Repeat the previous step for each additional field.
  5. Open a change request on this model and move it into the state. The field should now show as mandatory or read-only on the form.
  6. If you ticked Mandatory, open the transitions into the state and check that each carries a State Field Policy Managed condition listing the field.
  7. Attempt a save that leaves the field empty, or edits a locked field, and confirm the refusal message.

Frequently asked questions

Does a state field policy change what users see on the form?

Yes. While a request is in the state where the policy is active, the field appears as mandatory or read-only on its form.

Can a field be mandatory and read-only in the same state?

Yes. Both options can be ticked on one policy. A field that is both and currently empty can take one value, entered once.

Do the rules apply to scripts and integrations?

Yes. Enforcement happens on the server for create and update operations, including those made through scripts, integrations and APIs.

What happens to a transition when I clear Mandatory?

The field is removed from the State Field Policy Managed condition on each transition into that state. If no fields remain, the condition is deleted and the transition no longer waits for a value in that field.