Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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
Kilo Patron
Kilo Patron

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
Kilo Patron
Kilo Patron

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 🙂