Workflow modification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 07:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:26 PM
Hi @Ankitha4
You can set the Fulfillment group within the catalog task activity in the workflow.
You can consider to build Assignment rule for better maintenance later on.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:33 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:52 PM
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'
or through if activity using advanced scripts to set assignment group field on task, then use below script.
Please Mark Correct if this solves your query and also mark
Helpful if you find my response worthy based on the impact.
Thank You.
Regards,
Shubham Gupta