- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2016 12:38 PM
I need to force cancel a change request, is there any script to it & where to run it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 02:12 PM
change.setWorkflow(false); before your update(); statement.
var change = new GlideRecord('change_request');
change.get('<sys_id of change>');
change.setWorkflow(false);
change.state = 4;
change.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2016 12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 12:16 PM
Actually I cannot change the state from UI. I think its a broken change. Can you provide a script that can be run in background script?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 12:17 PM
Can anyone provide a script that can be run in background script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 12:21 PM
var change = new GlideRecord('change_request');
change.get('<sys_id of change>');
change.state = 4;
change.update();