adding rework to the tickets query