- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 08:17 AM
Hello,
I need some advice on how to automatically create a task every month and it be assigned to a group. Is it possible to do this as a private task instead of a catalog request task? I appreciate your help.
Thank you!
Wendy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 08:25 AM
Hi @Wendy20
You can use schedule Jobs and you can create the catalog request task and I have added the code :
var task = new GlideRecord('sc_task');//change the table as per your need
task.initialize();
task.short_description = 'Monthly catalog tasks ';
task.description = 'This task is created automatically every month for service catalog ;
task.assignment_group = '477a05d153013010b846ddeeff7b1225'; // Replace with the Sys ID of the assignment group
task.insert();
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 08:25 AM
Hi @Wendy20
You can use schedule Jobs and you can create the catalog request task and I have added the code :
var task = new GlideRecord('sc_task');//change the table as per your need
task.initialize();
task.short_description = 'Monthly catalog tasks ';
task.description = 'This task is created automatically every month for service catalog ;
task.assignment_group = '477a05d153013010b846ddeeff7b1225'; // Replace with the Sys ID of the assignment group
task.insert();
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:20 AM
Thank you for your fast response. This works 🙂