This procedure shows you how to set a relative time condition using a task due date, but
the procedure is the same for setting other relative time conditions.
- Click Configuration on the navigation
pane.
- Expand Site Configuration, then
double-click Rules.
- Click Task on the ribbon.
- Click Edit on the ribbon.
- Right-click the rule you want to add the relative time
condition to, then select Edit.
- Click Add IF Condition Based On,
then select . In this example, assume you want to
send a reminder email to staff members who have tasks due within the
next eight hours.
- Select the Relative check box to
set the condition based on a time relative to the task due date.
-
Click the drop-down list above the Relative check box.
The Relative Time window opens.
- Complete the fields in
the Relative Time window.
-
Click the Direction drop-down list, then select +
(Future).
- Enter 8 in the Offset field.
-
Click the Unit drop-down list, then select
Hours.
- Click Save to save your settings
and close the Relative Time window.
-
Click the drop-down list next to the condition Relative check
box, then select what you want the time you specified in step 9 to be
compared.
For example, if you wanted the rule to be triggered eight hours after a task is
created, you could select Tasks.Created from the menu. In our
example, you can leave the menu set to the default value of “Now,”
because you want this rule to be triggered eight hours after any event occurs that causes
the rule to be checked (such as when a task is edited).
-
Click the Select Operator drop-down list, then select
Less Than.
In this example, we want the rule to be triggered when a task due date is less
(earlier) than the relative time we specified.
What to do next
With this type of condition, you must add an action before
you can save the rule. See Business Rule Actions.