
Hi Martin,
Can I have the part of Kernel/Config/GenericAgent.pm for this job?
# -- # [name of job] -> close all tickets in queue spam # -- 'close spam' => { # get all tickets with these properties Queue => 'Spam', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # new queue Queue => 'Spam', # possible states (closed successful|closed unsuccessful|open|new|removed) State => 'closed successful', # new ticket owner (if needed) Owner => 'development', # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # DELETE! Delete => 1, }, }, );