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 06:35 AM
Here is the code. and state of incident is updating to resolved.
var gr = new GlideRecord("incident");
gr.addQuery("rfc", current.sys_id);
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.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 06:57 AM
here in the add query you are querying with rfc field which is nothing but your fixed change field which is empty and not yet populated so you wont find the record at all .
so can you tell me the link between incident and change where on the change request form is the incident stored or any related list ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:22 AM
fixed by change should be populated in incident related list when its associated change request is closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:54 AM
Hello Prash,
Please help me understand,
1) Is there any reference field on Change Request where we store Incident number?
2) Is there any field on Incident request where we store Change number?
3) What is the back-end name of 'Fixed by Change' field?
4) Are we 100% certain that the incident is being closed by this Business Rule? with the log statements may be you can confirm.
Regards,
Abhinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 08:05 AM
Hi
back -end name of Fixed by Change' field > 'rfc'
Yes closing by BR i have checked the logs.