I want to specify in my query to make sure I'm only retrieving tickets that were changed from one status to another within 7 days. So, in my example, if the status of the ticket was "Closed" then 6 days later it changed to "Customer Response", I want that ticket to be included:
Assignee in (LIST OF ASSIGNEES)
and createdDate >= '2022-03-01' and createdDate <= '2022-03-31'
and
(
status changed from "Completed" to "Closed"
and status changed from "Closed" to "Customer Response"
and status changed to "Customer Response" XXXXX
)
or
(
status changed from "Cancelled" to "Closed"
and status changed from "Closed" to "Customer Response"
and status changed to "Customer Response" XXXXX
)
Where I have written XXXXX I assume I need some sort of logic, but I'm not sure how it would be written. Any help would be appreciated.