I'm not aware of a way to see the old forums anymore.
I imagine that read something close to:
--- Start old post ---
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.txt
I 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.
--- end old post ---
As a side note there is a 3rd party plugin for automatically closing posts.
https://github.com/clonemeagain/plugin-autocloser