- Edited
Is there anyway to see the old forum posts? The imported code examples now are all but unusable in this forum. For example, check out this SQL mod from EOHSupport (https://forum.osticket.com/d/85900-auto-close-resolved-tickets-after-3-days/4):
I think this SQL is better:*** change ost_DB to the ost database name.use ost_DB;update ost_DB.ost_ticket inner join ost_ticket_status on ost_ticket.status_id = ost_ticket_status.id set ost_ticket.status_id = (select ost_ticket_status.id from ost_ticket_status where ost_ticket_status.name like 'closed')where ost_ticket_status.name like 'resolved' and DATEDIFF(now(), ost_ticket.updated ) > 3; I am going to schedule this with windows task scheduler. the command to schedule is:mysql -hlocalhost -uthe_userid -pthe_password < The_sql_File.SQL > the_output_File.txtI am thinking it would be good to have a feature in OST that allows you run SQL command on a schedule.If anyone else uses this I'd appreciate feed back.