When Change Request Get Closed closed related incident
Options
- 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.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2023 09:47 AM
Then write After Business rule on change request table
condition state changes to closed
Check advanced in script
var inc = new GlideRecord(‘incident’);
inc.addQuery(‘’change_request’,current.sys_id);
inc.query();
while(inc.next()){
inc.state= 3;
inc.update();
}
this will work
If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala
Bharath Chintala