Add a new stage in prblem flow

Vemisal
Tera Contributor

Hi, 

 

I need to add a new stage for the problem flow. The problem is that I can't manage to transition to that new state. As the picture shows, I created a new state called "A" between "Assess" and "Root Cause Analysis" to put an example.

Vemisal_0-1707819333405.png

I try to change the UI Action that transitions from "Asses" to "Root Cause Analysis" so it changes to "A" state instead. To get that I just use: 

g_form.setValue("state", "105"); (105 is the value of the "A" state)

But when I click the button, the next error emerges:

Vemisal_1-1707819687135.png

How can I make that transition to the new state without getting this error?

Thank you.

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vemisal 

 

Greetings!!

 

If you just doing this from learning side, that's fine, bcz adding a new state is like a customization and need to align all other UI action/ scripts to work fine.

 

You can check the OOTB , state model for Prb

 

LearnNGrowAtul_0-1707820329995.png

LearnNGrowAtul_1-1707820330131.png

 and see where to make changes so that your code work.

 

Need to define the new state

LearnNGrowAtul_2-1707820419690.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vemisal 

 

Greetings!!

 

If you just doing this from learning side, that's fine, bcz adding a new state is like a customization and need to align all other UI action/ scripts to work fine.

 

You can check the OOTB , state model for Prb

 

LearnNGrowAtul_0-1707820329995.png

LearnNGrowAtul_1-1707820330131.png

 and see where to make changes so that your code work.

 

Need to define the new state

LearnNGrowAtul_2-1707820419690.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************