Set Task Due Date Based on the Parent Workflow Item Priority
You might need to define the task due date based on the parent item priority. Workflow items don't have a default system field for priority. Create a new field of the type intended for setting the priority of an item. For example, create the « (ID: Priority) field and drag it to the form of a workflow item. Populate the list with the following values:
|Value||ID (created automatically)|
IF($parent->Priority == ID("Priority.values.Low"),
IF($parent->Priority == ID("Priority.values.Medium"),
With this expression, the higher priority is selected, the less task duration is specified. To check how it works, create a new workflow item, select its priority and move it through workflow. On the required step the child task will be created with the due date set according to the predefined rule.