Creating Change Request from Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2013 11:26 AM
When creating a change from an incident, once the change is created from the incident the change number appears on the incident under related records.
Our ITIL users are having a hard time finding the change number in this location so we would like the change number to also appear under the related list Change Requests.
Currently the change number is being manually added to the Change Requests related list, is it possible to automate?
I have looked all over the WIKI and in the forums with no luck. Any suggestions would be appreciated.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2013 09:52 PM
If you modify the UI Action 'Create Change' and add the line of code 'change.parent = current.sys_id;' then your newly created change also ends up under related changes.
Modified UI Action script 'Create Change':
var change = new GlideRecord("change_request");
change.short_description = current.short_description;
change.description = current.description;
change.cmdb_ci = current.cmdb_ci;
change.priority = current.priority;
change.parent = current.sys_id; ===================> new relationship through related changes tab
var sysID = change.insert();
current.rfc = sysID; ===================> out of the box relationship through rfc field
var mySysID = current.update();
gs.addInfoMessage("Change " + change.number + " created");
action.setRedirectURL(change);
action.setReturnURL(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2013 04:47 AM
I tested this out and it works as I need it to.
Thank you Laurens for taking the time to post.
Much appreciated.