Dynamic task assignment based on variable selection

Darren22
Tera Expert

Hi,

I have a catalog item where users are able to request work to be complete by a specific team. This team is select in a variable looking at the sys_user_group.

What I am needing to do is get the workflow to assign the catalog task to the team selected in that variable.

Variable name group_assignment

I am new to scripting so assume I know nothing šŸ™‚

So looking at the image below the catalog task needs to be sent to the group that was selected in the variable above

find_real_file.png

 

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

You should be able to do this in a couple of different ways within your 'Catalog Task' workflow activity.

1)  Populate task variables from 'Values' and set the 'Assignment group' field as shown in the screenshot below.

find_real_file.png

2)  Check the 'Advanced' checkbox in the 'Script' section shown above and use the following code.

task.assignment_group = current.variables.group_assignment;

View solution in original post

3 REPLIES 3

Mark Stanger
Giga Sage

You should be able to do this in a couple of different ways within your 'Catalog Task' workflow activity.

1)  Populate task variables from 'Values' and set the 'Assignment group' field as shown in the screenshot below.

find_real_file.png

2)  Check the 'Advanced' checkbox in the 'Script' section shown above and use the following code.

task.assignment_group = current.variables.group_assignment;

Darren22
Tera Expert

THANK YOU!!!!

You're welcome!  Best of luck getting the rest of this put in place.  Workflows are a lot of fun!