I need to keep track of all open defects with priority critical that are still open after 1 day, but I need to exclude Saturdays and Sundays.
Same for defects that are high priority but that are still open after 2 days also excluding weekends.
I need to still be able to track the items even if they are marked as done. So all items that missed the SLA are shown.
I tried using the following but didn't work:
Project = Rocket AND issuetype = bug AND Priority=high AND status = "Done" AND resolutiondate >= startOfWeek() AND resolutiondate <= endOfWeek() AND issueFunction in dateCompare("created", "resolutiondate", "workingDaysBetween(created, resolutiondate) <= 2")
Error:
Scripted function "dateCompare" compilation failure. Contact administrator and check logs. Message: The comparison must contain exactly one comparison operator which is either >, <, =, <= or >=.
If there is a better way, I'm all ears.
Thanks