- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:02 AM
I have a change request whose state was closed incomplete. But still active shows true instead of false.
How can I manually make active false?
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:50 AM
background script
var gr = new GlideRecord('change_request');
gr.addEncodedQuery('state=4^active=true'); //make sure about closed incomplete state value
gr.query();
while(gr.next()){
gr.active=false;
gr.setWorkflow(false);
gr.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:36 AM
Hi,
I cannot manually change from the list. Is there any other way I can make it false?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:50 AM
background script
var gr = new GlideRecord('change_request');
gr.addEncodedQuery('state=4^active=true'); //make sure about closed incomplete state value
gr.query();
while(gr.next()){
gr.active=false;
gr.setWorkflow(false);
gr.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 12:59 AM
for single record
var gr=new GlideRecord('change_request');
gr.get('sys id of your change request');
gr.active=false;
gr.setWorkflow(false);
gr.update();