Hi uzairjamal,I have not looked at 1.7 code recently, but if I remember correctly the sql statement is fairly similar to that of 1.8. In the include directory/staff/tickets.inc.php you would want to modify the sql statement and either add the data clause to the $qwhere variable or add a LIMIT of X (possibly 100 or 1000 tickets) when the ticket.status='closed' (simple if statement).Hope this helpsAndy