How to ensure all tasks are completed or cancelled before closing a Service Request

Version 1

    Details

    How to ensure all tasks are completed or cancelled before closing a Service Request


    Resolution

     

    Log in to the tenant as an Administrator
    Go into  Configure Application
    Select Business Objects
    Select Service Requests
    Click on Business Rules
    Scroll to the Validation Rules 
    Click on "Add Validation Rule"
    Select  "Validate on Update"
    In the Expression, add the following:

    $(Status != "Closed" && Status != "Fulfilled" ||
      IsTrueForAllChildren("ServiceReq#", 
                           RecId, 
                           "Task#Assignment.InternalTask", 
                           "$(Status == 'Completed' || Status == 'Cancelled' || Status == 'Rejected')"))

    In the Message, add the following (or something else you prefer):

    Please resolve all Tasks before completing the Service Request.


    Click on Save
    Refresh the client