Paramahanns
Tera Expert

Hi Sohan,



Please use a run script activity and you can write the script as needed.



if(current.variables.<VariableName> == 'VALUE')
create_catalog_task('SYS_ID_OF_GROUP')




function create_catalog_task(grp){
var sc_tsk = new GlideRecord('sc_task');
sc_tsk.initialize();
sc_tsk.request = current.request;
sc_tsk.request_item = current.cat_item;
sc_tsk.priority = current.priority;
sc_tsk.assignment_group = grp;
// Add rest of fields that you would like to copy from request_item to task


sc_tsk.insert();


}



Please mark as correct or helpful based on your result.



Regards


Param