Workflow modification

Ankitha4
Tera Contributor

I want to be able to assign a workflow task to an Assignment Group. The workflow is already configured and assigned to a 'xyz' now I want it assigned to abc 'group'. Please help me to chance the assignment groups in workflow for sc _task

3 REPLIES 3

Tai Vu
Kilo Patron
Kilo Patron

Hi @Ankitha4 

You can set the Fulfillment group within the catalog task activity in the workflow.

Timi_0-1712805963628.png

 

You can consider to build Assignment rule for better maintenance later on.

 

Cheers,

Tai Vu

Maddysunil
Kilo Sage

@Ankitha4 

If you have written script for assignment group, then just update the group

 

 var currentTask = new GlideRecord('sc_task');
    if (currentTask.get(current.sys_id)) {
        // Update the assignment group to 'abc' group
        currentTask.assignment_group = 'abc'; // Update 'abc' with the sys_id or name of the desired assignment group
        currentTask.update();
        
        gs.info('Assignment group updated for task: ' + currentTask.number);
    }

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

Shubham26
Tera Guru

Hi @Ankitha4 

 

You can follow below steps to update SC Task assignment group.

 

1. Open workflow editor and find your workflow which you want to update it, and open it.

2. Checkout the workflow.

3. Go to SC Task activity for which you want to update assignment group.

4. Check is it assigning through fulfillment group field, ten update it with your new group name i.e. 'abc'

Shubham26_0-1712818066162.png

 

or through if activity using advanced scripts to set assignment group field on task, then use below script.

 

Shubham26_1-1712818234040.png

 

 

Please Mark Shubham26_2-1712818266168.png Correct if this solves your query and also mark Shubham26_3-1712818266187.png Helpful if you find my response worthy based on the impact.

 

Thank You.

 

Regards,

Shubham Gupta