Is possible to automate creation of a monthly task and be assigned to a specific group?

Wendy20
Tera Expert

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

1 ACCEPTED SOLUTION

SAI VENKATESH
Tera Sage
Tera Sage

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();

cn109.PNG

 

Thanks and Regards

Sai Venkatesh

View solution in original post

2 REPLIES 2

SAI VENKATESH
Tera Sage
Tera Sage

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();

cn109.PNG

 

Thanks and Regards

Sai Venkatesh

Thank you for your fast response. This works 🙂