Set the task priority based on the parent workflow task/doc priority

You might need to set the task priority based on the parent item priority. Use the following identifiers in your expressions as task priorities:

Value

ID

Low priority

cmw.taskPriority.low

Medium priority

cmw.taskPriority.medium

High priority

cmw.taskPriority.high

Workflow tasks/docs don't have a default system field for priority. Create a new field of the List of Values type intended for setting the priority of an item. For example, create the Request Priority (ID: Request_Priority) field and drag it to the form of a workflow task. Populate the list with the following values:

Value

ID

Low

Request_Priority.values.Low

Medium

Request_Priority.values.Medium

High

Request_Priority.values.High

Perform the following steps to set the child task’s priority based on the parent item’s priority:

1. Open a workspace, open an application inside a workspace.

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 priority:

 

IF ($parent->Request_Priority == ID(""Request_Priority.values.Low""),

ID (""cmw.taskPriority.low""),

If ($parent->Request_Priority == ID(""Request_Priority.values.Medium""),

ID (""cmw.taskPriority.medium""),

ID (""cmw.taskPriority.high"")

)

)

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 with the priority set according to the predefined rule.

Attachments
There are no attachments for this article.
Feedback
Security Code
Related Articles
The Administration area
Viewed 117 times since Wed, Dec 5, 2018

Optional Step 1: Add Company Logo
Viewed 112 times since Wed, Dec 5, 2018

Creating Steps
Viewed 103 times since Wed, Dec 5, 2018

About Scheduled Reports
Viewed 114 times since Wed, Dec 5, 2018

Supported Web Browsers
Viewed 119 times since Wed, Dec 5, 2018

Built-in editor
Viewed 146 times since Wed, Dec 5, 2018

Retrieving a Lost Password at Comindware Website
Viewed 184 times since Wed, Dec 5, 2018

Attaching a File
Viewed 130 times since Wed, Dec 5, 2018

Adding Existing Applications In a Workspace
Viewed 114 times since Wed, Apr 8, 2020

Deploying a Business Application
Viewed 228 times since Wed, Dec 5, 2018