# @jc:task-assign Annotation

Assigns a Task to the Assignees List.

Used by Task and Task Worker controls.

### Syntax

@jc:task-assign

user="user1,user2,user3,...,userN"]
[group="group1,group2,group3,...,groupN"]
[algorithm=["ToUser" | "ToUserInGroup" | "ToUsersAndGroups"]

### Attributes

algorithm

A string for determining how to assign or claim Tasks from users on the Assignees List. It must be one of the following values:

ToUser—claims the Task to a user by name.

ToUserInGroup—assigns the Task to the user in the group that has the least work to perform.

ToUsersAndGroups—assigns the Task to any list of users, list of groups, or combination of users and groups.

group

A string or string array. This annotation consists one or more group names for the Assignees List. You must separate each group name with a comma.

user

A string or string array. This setting consists of one or more user names for the Assignees List. You must separate each group name with a comma.