Set the due date of a task based on the parent workflow task/doc priority

Expand our previous example with the expression, which defines the due date of a child task based on the parent worfklow task/doc priority. The expression adds the predefined duration to the current date. Duration is represented in ISO format. Perform the steps 1-4 as described in the previous example and then type the following expression as predefined rule for the due date:

 

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

ADD($$now, DURATION(“P7D”)),

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

ADD($$now, DURATION(“P3D”)),

ADD($$now, DURATION(“P1D”))

)

)

With this expression, the higher priority is selected, the less task duration is specified. To check how it works, create a new workflow task, 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.

Attachments
There are no attachments for this article.
Feedback
Security Code
Related Articles
How To Migrate Data Using CSV
Viewed 49 times since Wed, Dec 5, 2018

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

Creating Transitions
Viewed 42 times since Wed, Dec 5, 2018

Setting a Backup Location
Viewed 79 times since Wed, Dec 5, 2018

Comindware Tracker in Cloud database size calculation
Viewed 86 times since Wed, Dec 5, 2018

ID of User Account’s attributes
Viewed 45 times since Wed, Jun 3, 2020

Enabling Single Sign-On In Comindware Tracker Installed As a Service
Viewed 48 times since Wed, Dec 5, 2018

Configuring Your Web Browser
Viewed 41 times since Wed, Dec 5, 2018

How to set up notifications in Outlook for incoming Comindware Tracker messages
Viewed 48 times since Wed, Dec 5, 2018

Modifying List Settings
Viewed 45 times since Wed, Dec 5, 2018