Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ITSM Simulator Task

Madhumati
Tera Contributor

Hello Team,

I'm performing the ITSM simulator task: Problem state should be "Pending Change" after creating Normal Change or Emergency change from Problem record.

But error is displayed after change is created from problem record.

 

I have configure the Problem State choice list and added "Pending Change", value -108 and also added code to Create Normal Change UI Action Script as current.state=108.

 

Looking forward to your response. 

 

Thank you.

 

 

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

Check that UI action script, because your pending change is -108 and you are looking at state=108. That won't work, but I guess that could be a typo.

You will need to check on your state models. You aren't allowed to move from New to Pending Change, means that you should create that possibility. 
There is a PRB mgt State Model in the sys_state_model table. You need to create a new state transition on it.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

Check that UI action script, because your pending change is -108 and you are looking at state=108. That won't work, but I guess that could be a typo.

You will need to check on your state models. You aren't allowed to move from New to Pending Change, means that you should create that possibility. 
There is a PRB mgt State Model in the sys_state_model table. You need to create a new state transition on it.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Madhumati
Tera Contributor

Hi Mark,

I have created new state transition as Pending Change when problem is in New/Root Cause Analysis/Resolved/Closed in Problem Management(Default Flow) State Model. Now it is working successfully.

 

Thank you for your answer.