We are monitoring our Sailpoint instance with Splunk to alert when a task has been completed with errors in IdentityIQ.
How ever, I also need to create an alert for when a certain task has been in status “Pending” for X amount of days which then alarms in Teams. Since “pending” is not a status that can be extracted from the TaskResults API, and the attribute completionStatus does not include "pending, how would one go about doing this?
There isn’t a specific API to retrieve pending tasks. However, you can obtain pending tasks by filtering based on the start and completion dates. Please see the code below for reference.