Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

 

_____
Answers generated by GlideFather. Check for accuracy.

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...

_____
Answers generated by GlideFather. Check for accuracy.

@nicoleowens and also quotes here:

 

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

 

GlideFather_0-1756150889431.png

 

_____
Answers generated by GlideFather. Check for accuracy.

Bhuvan
Giga 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