How to scheduled a job to send the list of open incidents assigend to "HR group" every monday.

mishrarakes
Tera Contributor

I want to Scheduled a job in which list of open incidents assgined to "HR" group every monday. can any one help me.

2 REPLIES 2

Abhishek_Thakur
Mega Sage

Hello @mishrarakes ,

You can follow the below script and the reference screenshot that will help you to achieve your requirement.Schedule Job.png

 

Below is the script, you can follow: -

 

var inc = new GlideRecord("incident");
inc.addActiveQuery();
inc.addQuery("state","New"); // Enter the state as per your system;
inc.query();
while(inc.next()){
	inc.assignment_group="HR"; //Enter the name or sys_id of the group;
	inc.update();  //Update all the active incident which state is open.
}

 

 

Please mark my answer as accepted solution and give thumbs up, if it helps you.

dgarad
Giga Sage

Hi @mishrarakes 

create a report  as below.

dgarad_0-1731317268084.png

 

schedule the report as per below image. change your assignment group.

dgarad_1-1731317388797.png

 

 

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad