I have a scenario wherein I need to check if an issue is beyond the SLA, I need to exclude saturday and sunday based on the creation date. For example, if the priority of an issue is Critical, we need to resolve this within 1 day. If it has passed one day and the issue is still open then we tag them.
Currently, I have this query...created <= endOfDay(-2d) AND priority = Critical. This works great but it doesnt take into account the weekends. So if the defect was created on a friday it starts tagging on a saturday if it is still open but I want it to tag on Monday by excluding saturday and sunday.
Is there anyway I can do this in addition to my below query?
created <= endOfDay(-2d) AND priority = Critical