when an incident is resolved by fixed by change . Change number is not showing up in fixed by change field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 01:17 PM
when an incident is resolved by fixed by change . Change number is not showing up in fixed by change field.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 01:31 PM
Hello ,
you are saying there are no records when you click on fixed by change or you cant see the number ?
can you send a screenshot what is happening after clicking on it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 02:04 PM
hello,
then i think there must be business rule written on the incident or change request form with trigger conditions as state changed to resolved and populate the fixed by change field
can you check this ?
if yes post the script it can be causing the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 02:06 PM
BR script
(function executeRule(current, previous /*null when async*/ ) {
gs.log('abc' + current.sys_id);
var gr = new GlideRecord("incident");
gr.addQuery("rfc", current.sys_id);
//gr.addQuery("state", 4); // incident state 4 is pending change
gr.query();
while (gr.next()) {
gs.log('abc 123' + gr.number);
// resolve the incident
gr.state = 6; // OOB, resolved is 6
// add some canned comments to the resolved incident
//gr.description = "This incident has been resolved due to the successful implementation of change request " + current.number;
// gr.rfc = current.short_description;
gr.update();
}
})(current, previous);