- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
IN SERVICENOW when I am raising a normal or emergency change request I want to have Incident field to be mandatory because of which this change has come. How can I make this possible with out of the box settings. where I can save this related incident number in Change table.
Suggest the solutions
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
@Vaibhav Ramteke If users create the change directly from an incident, OOTB functionality automatically populates the change request ( rfc) field on the incident form and the same incident record is get added to related list "Incidents fixed by changes" of change form.
You can make change request field (rfc) field of incident form and achieve this requirement with help of dictionary override functionality of this field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
- Table: Change Request
- When: before,update
- Condition: Type is Normal OR type is Emergency AND State is Assess
(function executeRule(current, previous /*null when async*/ ) { var gr = new GlideRecord("incident"); gr.addQuery("rfc", current.sys_id); // rfc is the field on incident pointing to change gr.query(); if (!gr.hasNext()) { gs.addErrorMessage('Please add at least one Incident in the "Incidents fixed by Change" related list.'); current.setAbortAction(true); } })(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
@Vaibhav Ramteke If users create the change directly from an incident, OOTB functionality automatically populates the change request ( rfc) field on the incident form and the same incident record is get added to related list "Incidents fixed by changes" of change form.
You can make change request field (rfc) field of incident form and achieve this requirement with help of dictionary override functionality of this field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
but i don't want to create change directly from an incident, when i create change that time its populate like that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
The solution I gave , it will work to enforce populate incident from Change-> Incident Fix by change related list
