Set the task assignee depending on parameters of the parent workflow task/doc

Setting the task assignee depending on the priority of the parent workflow task/document.

To set the assignee of the child task depending on the priority of the parent item, take the previous example and substitute the functions of subtraction with the identifiers of required users.

Perform the following steps to specify the assignee of a task:

1. Open a workspace, open a workflow app inside a worksapce.

2. Click Workflow and double click a required step.

3. In the window that appears, in the Actions group click Responsible Persons.

4. Select the Assign tasks and pre-populate task fields check box and expand Task Settings.

5. Set the following rule for assignee:

 

IF ($parent->Priority == ID(“Priority.values.Low”),

ID (“account.4”),

If ($parent->Priority == ID(“Priority.values.Medium”),

ID (“account.2”),

ID (“account.6”)

To check how it works, create a new workflow task and move it through workflow. On the required step the child task will be created and its assignee will be set according to the predefined rule.

 

Setting the task assignee depending on an item field of the ‘User’ type.

If you want to set a responsible person on a particular workflow step for a workflow task and want this person to be automatically specified as a task assignee on certain subsequent steps, you can use this example.

Do the following to configure the rule:

1. Open a workspace, open a workflow app inside a workspace, click Workflow.

2. To be able to set a responsible person for a workflow task you should create a new field of the User type in the workflow app or use the existing one if any. For example, the Responsible field (ID: Responsible).

3. Go to Workflow. Make this field mandatory on the required step.

Type the following expression in the Assignee field of each task you want to be assigned to the responsible person:

 $parent->Responsible

Use the following expression for a subtask assignee:

 $parent->$parent->Responsible

To check how it works, create a new workflow task and move it through workflow. On the required step you will be prompted to select a responsible person from the list of available users.

Selected user will be automatically specified as a task or subtask assignee on the required subsequent steps.

Attachments
There are no attachments for this article.
Feedback
Security Code
Related Articles
Step 7: Configure Application: Create a Workflow
Viewed 80 times since Wed, Dec 5, 2018

Setting Up Personal Notifications
Viewed 43 times since Wed, Dec 5, 2018

About Applications
Viewed 84 times since Wed, Dec 5, 2018

Pre-Populating Item Fields
Viewed 73 times since Wed, Dec 5, 2018

Workflow forking
Viewed 40 times since Wed, Dec 5, 2018

How to Read the Log
Viewed 45 times since Wed, Dec 5, 2018

Return information from a related item
Viewed 36 times since Wed, Dec 5, 2018

Copy a task/doc description to a child task or subtask
Viewed 44 times since Wed, Dec 5, 2018

Assigning Responsible Persons
Viewed 76 times since Wed, Dec 5, 2018

Default User Groups
Viewed 43 times since Wed, Dec 5, 2018