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
Return the list of the items the current item is referenced by
Viewed 108 times since Wed, Dec 5, 2018

Where can I get the latest Comindware Tracker build?
Viewed 127 times since Wed, Dec 5, 2018

Ribbon
Viewed 104 times since Wed, Dec 5, 2018

Navigation
Viewed 116 times since Wed, May 20, 2020

Bar Chart
Viewed 189 times since Wed, Dec 5, 2018

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

Registering an Account at Comindware Web Site
Viewed 207 times since Wed, Dec 5, 2018

Pie Chart
Viewed 185 times since Wed, Dec 5, 2018

Reporting
Viewed 102 times since Wed, Dec 5, 2018

How To Create a Field
Viewed 202 times since Wed, Dec 5, 2018