OTRS spam hyperlink in menu

Moderator: crythias

Locked
rvwmgk
Znuny newbie
Posts: 55
Joined: 10 Mar 2015, 17:40
Znuny Version: OTRS 4 Free

OTRS spam hyperlink in menu

Post by rvwmgk »

I would like a link in the ticketview menu to mark as spam.

So I checked Ticket::Frontend::MenuModule###470-Spam in SysConfig > Ticket > Frontend::Agent::Ticket::MenuModule.

The link it there but is there any way to close the ticket when clicking the link?

When I click the Spam link now it is moved to the Junk folder but I would like to close it at the same time.

I tried:

Key: Content:
Link Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Junk;State=Closed

and

Key: Content:
State Closed

But that doesn't work.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS spam hyperlink in menu

Post by jojo »

You have to use an event based generic agent to solve this requirement
"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
rvwmgk
Znuny newbie
Posts: 55
Joined: 10 Mar 2015, 17:40
Znuny Version: OTRS 4 Free

Re: OTRS spam hyperlink in menu [Solved]

Post by rvwmgk »

Done!

I created the flwg generic agent:

Select Tickets: Queue: Junk

Update/Add Ticket Attributes: Set new state: closed with success

This works perfectly!
Locked