Create Change from Incident

tahnalos
Kilo Sage

There is a Create Change button on Incident and I am trying to see why it isn't working.

Qualification is current.incident_state != 7 && gs.hasRole("itil") && gs.fieldExists('incident', 'rfc') && current.rfc.nil()

As far as I know gs.fieldExists is no longer supported.  Is this true?  And what is that method supposed to do?

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

are you using scoped application by any chance because gs.fieldExists() won't work in scope app

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Munender Singh
Mega Sage

Hi,

gs.fieldExists does work but not supported in scoped applications.

Secondly, for the gs.fieldExists('rfc') part specifies whether incident is already linked to a change or not.If not,then the UI action 'create change' will disappear.

 

Regards,

Munender

This is the OOB code for Incident.  Can you clarify when you say that the fieldExists part specifies whether the incident is already linked to a change?  Where does it look for that?

Thanks

It looks under the related list 'change requests' under the incident form,where you can see if the incident is associated with any change request or not.

 

Regards,

Munender