Is it possible to do a mass closing of the Incidents with specific assignment group, These are not worked by any group and need to be Resolved with no action. Is there a way to setup auto-closure on these as well? That way when they come in, they au
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 03:54 PM
Is it possible to do a mass closing of the Incidents with specific assignment group,
These are not worked by any group and need to be Resolved with no action. Is there a way to setup auto-closure on these as well? That way when they come in, they automatically close?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 09:21 PM
Hi Reddy,
Check this page out modify the script to your needs
SN Pro Tips — Pro Tip: Use updateMultiple() for Maximum Efficiency!
and yes you can create a after insert business rule to automatically close the incident based n the assignment group
please mark helpful or correct 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 09:31 PM
Hi
You cannot clone just the Incidents.
For closing incidents ,You can do this using Update All functionality.
Goto Incident list which you need to close -> Rightclick on list action -> Update All,
Select required field and click on Update.
Something like:
Make sure you apply required filter before using this option to get to that specific list you want to close
OOR use a fix script like this to auto-close the incidents:
var gr = new GlideRecord('incident');
var string='active=true^state=2'; //Replace your Query here
gr.addEncodedQuery(string)
gr.query();
while(gr.next())
{
gr.setWorkflow(false); //This would not allow any Notifications to get trigger while closing
gr.autoSysFields(false);
gr.state = 10; //Replace your Closed State value here
gr.update();
}
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep