When Change Request Get Closed closed related incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 08:43 AM
Hello All,
I want to close the related incident on the change request form when the change request is get closed .
can anyone please guide me on this?
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 08:53 AM
Hi @Sagar_pawar ,
Please refer the below links, you will get a solution in this links:
1) https://www.servicenow.com/community/developer-forum/i-want-to-close-related-incident-records-aut...
2) https://www.servicenow.com/community/itsm-forum/parent-child-simultaneous-close/m-p/876196
3) https://www.servicenow.com/community/developer-forum/auto-resolve-all-related-incidents-when-a-chang...
4) https://www.servicenow.com/community/developer-forum/when-change-request-was-closed-automatically-as...
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 09:02 AM
Hi @Sagar_pawar ,
You can write an after business rule on change_request table to achieve this:
var inc = new GlideRecord("incident");
inc.addQuery("change_request",current.getUniqueValue()); // check for the proper column of change_request
inc.query();
while(inc.next()){
inc.state = "closed";
inc.update();
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 09:23 AM
I think all incidents should auto close OOB. Cgeck once
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 09:39 AM
Hello @BharathChintala i checked its not closed yet