Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 11:42 PM
Hello @terrieb
Apologies for delay. Sample script can be as below:
// Check if the state has changed to Closed Incomplete
if (current.state == 'Closed Incomplete') {
var ritm = new GlideRecord('sc_req_item');
if (ritm.get(current.request_item)) {
// Update the RITM state and stage if it's active or already closed incomplete
if (ritm.state != 'Closed Incomplete' && ritm.state != 'Closed Complete') {
ritm.state = 'Closed Incomplete';
ritm.stage = 'Request Cancelled';
ritm.update();
}
}
}
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.