Create Change from Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 09:02 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 09:08 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 09:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 10:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 04:14 PM
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