add another state

Shpilmaa
Tera Contributor

Hi guys!

 

i have some groups for example:

 

Maintenance and HMI

Shpilmaa_0-1706121350101.png

 

now, i got same "state"on all groups

Shpilmaa_1-1706121473089.png

 

how can i add some other state to just 1 group like "HOLD" or "REJECTED"

 

thanks for advance!

 

3 REPLIES 3

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @Shpilmaa ,

 

The requirement is not clear. Can you elaborate more?

 

Where is this state field? Based on what criteria do you want to add option in state?

 

Do you want something like, if some specific assignment is set then only you want to show the option? 

 

Give more clarification!!!

Chris McDevitt
ServiceNow Employee
ServiceNow Employee

Hi,

From first-hand experience (and our leading practice), you should not modify (or add State values). Adding a "Sub State" field to the table would be better. Then you could set State to "Pending assignment" (As an example) and your new Substate to "HOLD" | "Rejected." 

Why?

Because most of the application's logic is run off of the State values (Think Business Rules and Script Includes).

 

You can add new values to the State field, but you will need to test and see if this somehow impacts the business logic behind the application. Then, after each upgrade, you need to repeat the test to see if the business logic has been impacted. 

AshishKM
Kilo Patron
Kilo Patron

Hi @Shpilmaa , 

First you can add more state values which will display on the from independent of assignment group. 

Second you can write client script ( onLoad )  and remove these two state "Hold" & "Rejected" if assignment group is not matched.

 

Note: These state field will visible on other form ( other table based record ) as well if used the same state.  

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution