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

reddynikitavaik
Tera Contributor

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?

2 REPLIES 2

DanielCordick
Mega Patron
Mega Patron

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 🙂 

Community Alums
Not applicable

Hi @reddynikitavaikar ,

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:

find_real_file.png

Make sure you apply required filter before using this option to get to that specific list you want to close

find_real_file.png

 

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