How to update workgroup when a record is moved to specific state?

We can do this by going to setting page of process ‘User/Role Management’->‘Workgroup’ and then click on a particular workgroup and in the ‘Advance settings’ you need to select the specific state using ‘Consider State’ on which you want to update the workgroup of the record.

Please refer our online help link for more details - Work Group