How to scheduled a job to send the list of open incidents assigend to "HR group" every monday.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 01:07 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 01:29 AM
Hello @mishrarakes ,
You can follow the below script and the reference screenshot that will help you to achieve your requirement.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 01:30 AM
Hi @mishrarakes
create a report as below.
schedule the report as per below image. change your assignment group.
If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.
Thanks
dgarad
Thanks
dgarad