The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Creating a change request from problem Simulator Task ITSM

nicoleowens
Tera Expert

nicoleowens_0-1756149661813.pngnicoleowens_1-1756149686789.pngnicoleowens_2-1756149704896.png

Hey everyone, i am having a problem in these task in the ITSM simulator:

I have copied the code i found in a similar question 

nicoleowens_3-1756149772013.png

Yet it is giving me this error and is validating. I have used the same code in the 'Create normal change' UI Action record. Also does this simulator validate on 80%?

1 ACCEPTED SOLUTION

@nicoleowens and also quotes here:

 

gs.hasRole("itil") && new ChangeRequestStateHandler(current).isNext("pending_change")

 

GlideFather_0-1756150889431.png

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

3 REPLIES 3

GlideFather
Tera Patron

Hi @nicoleowens,

it seems like a missing ")" on the line 5:

ga.getXMLAnswer (function(stateValue)) 

GlideFather_0-1756150373895.png

 

 

EDIT: not this, the closing quote is on the line 9...

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@nicoleowens and also quotes here:

 

gs.hasRole("itil") && new ChangeRequestStateHandler(current).isNext("pending_change")

 

GlideFather_0-1756150889431.png

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Bhuvan
Kilo Patron

@nicoleowens 

 

Make sure the syntax is correct and you closed the brackets, parenthesis correctly as it is a common mistake. Use any online tool or Notepad++ to check for any missing grouping symbols.

 

Bhuvan_0-1756150774773.png

 

Refer below link to complete the task,

 

https://www.servicenow.com/community/itsm-forum/creating-a-change-request-from-problem/m-p/2936625

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan