RaghavSh
Kilo Patron

In last few weeks I have seen few questions on community where users are struggling to hide/show states based on other state values in various tables including incident, sc task, problem etc.

 

There is a OOB free plugin named "State Flow (com.snc.state_flows)" which allows you to do it easily without any customisation or scripting. 

 As an example if we want that incident should only transition from "new" to "in progress" state and not any other state below steps can be followed:

 

1. Install free "State Flow" plugin in your instance.

2. Navigate to state flows from application navigator

Screenshot 2022-12-11 at 2.46.15 PM.png

3. Create a new state flow as per your requirement (new-in progress) in this case. Select the table name, starting and ending state.

Screenshot 2022-12-11 at 2.56.58 PM.png

 

 

 

 

 

 

 

 

 

 

4. Once created click on "Create Client Script" UI action.

5. Post that go to your incident table and check the state values.

Screenshot 2022-12-11 at 3.07.00 PM.png

6. You can only transition from "new" to "in progress" now.

 

There is yet a lot to be explored in this, below is the link to service-now state flow documentation, go check and let me know in the comments.

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/state-flows/concept/c_St... 

Version history
Last update:
‎12-11-2022 01:39 AM
Updated by:
Contributors