[Tips & Tricks]Preventing Request Closure when there are Pending Approvals
One of our ServiceDesk Plus customers requested a function to prevent service requests from being closed if it has a pending approval.
Scenario:
In the customer's environment, they have configured a set of Service request templates that have a single-stage approval set up in the workflow. However, they have found a few Service requests being closed without the approval being approved (regardless of approval status is "to be sent" or "pending approval"). We provided a custom script to prevent requests in "pending approval" status from being closed.
Solution:
- Whenever a user tries to close a request in a pending approval status, they will be prevented with a popup alert as in the screenshot given below.
Thank you for your time, I hope you find this article useful!