We are trying to send a Slack notification for documents that have been created more than 15 minutes ago and have a status of “Open”. If this condition is true, we need to trigger the Slack notification.
We are using the following condition to trigger it, but we haven’t received any notifications:
(frappe.utils.now_datetime() - frappe.utils.get_datetime(doc.creation)).total_seconds() / 60 > 10 and doc.status == ‘Open’
The following condition is working:
doc.status == ‘Open’