Modifying "Delete" behavior

Moderator: crythias

Post Reply
fcollerette
Znuny newbie
Posts: 24
Joined: 27 Dec 2017, 20:40
Znuny Version: 6.0.2-03

Modifying "Delete" behavior

Post by fcollerette »

Hi,

I'm trying to fine-tune the "delete" behavior in "Ticket::Frontend::MenuModule###460-Delete"

For the link I added "State=5;StateType=closed" so the line looks like this :
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Delete;State=5;StateType=closed

When I "delete" a new ticket, it is put in the "Delete" queue as it should but the state stays at "new".

What I'm tryin to accomplish is when we "delete" a ticket that it is put in the queue "Delete" and that the state is also modify to "closed"

Thanks for your help.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Modifying "Delete" behavior

Post by jojo »

use the generic agent to close the tickets on queue update
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
fcollerette
Znuny newbie
Posts: 24
Joined: 27 Dec 2017, 20:40
Znuny Version: 6.0.2-03

Re: Modifying "Delete" behavior

Post by fcollerette »

Hi jojo,

What do you mean by "GenericAgent" ? I crossed that term quite a few times but didn't figure out what it's related to.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Modifying "Delete" behavior

Post by jojo »

The Generic Agent in the admin interface...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
fcollerette
Znuny newbie
Posts: 24
Joined: 27 Dec 2017, 20:40
Znuny Version: 6.0.2-03

Re: Modifying "Delete" behavior

Post by fcollerette »

Found it thx !
Post Reply