Hi Jake,
On Thu, Mar 20, 2003 at 03:37:54PM -0500, Covert, Jake wrote:
> Using the GenericAgent.pm how would I reference a ticket by it's ticket
> number for delete? Would it be as simple as this below?
> ==================================
> [...]
> # --
> # [name of job] -> close and delete all tickets in queue delete
> # --
> 'delete' => {
> # get all tickets with this properties
> Ticket => '10105521',
> # new ticket properties (no option is required, use just the options
> # witch should be changed!)
> # DELETE!
> Delete => 1,
> },
>
> [...]
> ==================================
This will not work. Normally you want not to change the Kernel/Config/GenericAgent.pm
for each ticket!
-=> So create a delete queue and move all "delete"-ticket into this queue.
Add the following job to Kernel/Config/GenericAgent.pm
[...]
'delete' => {
Queue => 'delete',
States => ['new', 'open'],
Locks => ['unlock'],
New => {
Delete => 1,
},
},
[...]
Then the GenericAgent.pl will delete the ticket.
> Jake Covert
> Infrastructure Analyst
> Electronic Data Systems
> PSIC Support Group
Martin
--
Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/
--
"There are two major products that come out of Berkeley: LSD and Unix.
We don't believe this to be a coincidence." -- Jeremy S. Anderson
_______________________________________________
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