SR Due date calculation is delayed
Summary:
We have a requirement from client, where on the click of the button on the Service Request, the due date of service request needs to be copied from the SR to all its child work orders.
This button first calculates the new Severity of the Service request, which calculates the new due date (which takes some seconds to show up in the UI) but the script execution completes before that and copies the old due date of SR to all the child work orders. We make the API call of GET SR, read the due date from it and then copy it into the due date field of Work orders.