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-04-2022 08:51 AM
Hello Prash,
var gr = new GlideRecord("incident");
gr.addQuery("rfc", current.sys_id); //This statement is null/void
gr.query();
while (gr.next()) {
gs.log('resolve incident test 1' + gr.number);
gs.log('resolve incident test 2' + current.number);
gr.state = 6;
gr.rfc = current.sys_id;
gr.setWorkflow(false); //Added this line to isolate this codes functionality
gr.update();
}
Regards,
Abhinay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 08:56 AM
Hello Prash,
when an incident is resolved by fixed by change, are you saying that your incident is being resolved thorugh change request? How do you know, can you epxlain this.
Technically the relationship9 between change and incident is through rfc. if that itself is not established, then how are you saying that incided is resolved by change.