I need to change state to close of bulk problem tickets at a time
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:50 AM
var gr = new GlideRecord('problem');
gr.addQuery(' my condition');
gr.query();
while (gr.next()) {
gr.setValue('state', 'closed');
gr.update();
}
i used above simple fix script but it was not working help me for this
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:56 AM
Did you check the state value on the table? They're normally numbers like 107 as an example. The rest looks fine.