
Hi, We have a GenericAgent.pm, which will do this für the create date. IMHO the easied way would be to add the changes to support TicketChangeTime or use TicketFreeTime Regards Thomas ... 'delete-old-ML' => { # get all tickets with these properties Queue => ['xxxs','xyyy'], # States => ['new', 'open'], Locks => ['unlock'], # tickets older then 1 year+1 day TicketCreateTimeOlderMinutes => 568800, # new ticket properties (no option is required, # use just the options which should be changed!) New => { # DELETE! Delete => 1, # Queue => 'Junk', }, }, ... -----Ursprüngliche Nachricht----- Von: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Im Auftrag von Alexander Scholler Gesendet: Mittwoch, 22. März 2006 15:50 An: User questions and discussions about OTRS.org Betreff: [otrs] Delete old closed tickets Hi all, I would like to delete all tickets which have state "closed" with their close-date older than X month. To achieve this I think I should use an generic agent job on all closed tickets, but how can it be checked that the close-date is minimum X month ago? I could call an external CMD that examines the DB-entries, but that's no good idea because this CMD-scripts need the DB-connection-parameters, an extra DB-connection etc., all thinks that are present within OTRS. So I think a self written module would be better. But I've no idea where to start ("25. Developer's guide - Writing OTRS Modules" on OTRS-DOC v1.3 doesn't really help me). Has anybody experience on that? Bye, Alex _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/