OTRS Version: 3.3.12
OS: CentOS 6.5
Database: mySQL 6.5
Perl Version: Perl 5.10.1
Hi,
I'd like to have a spam button in the Frontend::Agent::Ticket::MenuModule, which opens a spam/close ticket window. But instead of the default values for the close window, have a different default subject, body and state. I created a new state named 'Spam' with a statetype of 'Closed'
I went into the Frontend::Agent::Ticket::MenuModule and enabled 'Frontend::MenuModule###470-Spam', but this gave me a standard ticket move window.
I then copied the parameters from 'Ticket::Frontend::MenuModule###450-Close' to 'Frontend::MenuModule###470-Spam' which gave me a standard close window with the defaults from 'Frontend::Agent::Ticket::ViewClose'. This is closer, but I need different defaults.
I think that what I need to do is to create a ''Frontend::Agent::Ticket::ViewSpam' which would be the same as 'Frontend::Agent::Ticket::ViewClose' but with the defaults set differently.
How can I create ''Frontend::Agent::Ticket::ViewSpam', set 'Frontend::MenuModule###470-Spam' to trigger it and register it?
Thanks!
How to create a Spam/Close window?
Moderator: crythias
-
- Administrator
- Posts: 4250
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to create a Spam/Close window?
You need a frontendmodule and a Xml file. For the module take a look at Kernel/Modules/AgentTickeClose.pm and create your own AgentTicketSpam.pm for the XML lookup Ticket.xml for all AgentTickeClose related entries, place them in your own xml file and rename the entries according to your module.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 62
- Joined: 13 Mar 2015, 18:34
- Znuny Version: 6.4
- Real Name: Rich Hagan
- Company: Victorinox Swiss Army, Inc.
Re: How to create a Spam/Close window?
Thanks! That worked, but additionally I had to copy /Kernel/Output/HTML/Standard/AgentTicketClose.dtl to AgentTicketSpam.dtl. Then it all worked great.
Thanks again!
Thanks again!
-
- Administrator
- Posts: 4250
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to create a Spam/Close window?
Ups, sorry about that. I forgot
you're welcome

Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 62
- Joined: 13 Mar 2015, 18:34
- Znuny Version: 6.4
- Real Name: Rich Hagan
- Company: Victorinox Swiss Army, Inc.
Re: How to create a Spam/Close window?
OTRS 6.0.20
CentOS 7.3.1611
MariaDB 5.5.60
Perl 5.16.3
Hi, I'm installing a new OTRS 6 system and would like to have a Spam Button that closes the ticket - the same as above.
I tried doing exactly as i did before, but without any luck.
What I've done is:
Create a 'Junk' Ticket state.
copied /opt/otrs/Kernel/Modules/AgentTicketClose.pm to AgentTicketJunk.pm and changed 'AgentTicketClose' to 'AgentTicketJunk'
copied /opt/otrs/Kernel/Output/HTML/Templates/Standard/AgentTicketClose.tt AgentTicketJunk.tt
edited /opt/otrs/Kernel/Config/Files/XML/Ticket.xml:
Copied all Settings items with Name="Ticket::Frontend::AgentTicketClose to the bottom of Ticket.xml and changed 'AgentTicketClose' to 'AgentTicketJunk' and 'ViewClose' to 'ViewJunk'
Copied "Frontend::Module###AgentTicketClose" to the bottom of Ticket.xml, changed it to "Frontend::Module###AgentTicketJunk" and changed Ticket Close' to 'Ticket Junk' and 'Close' to 'Junk'.
Under Name="ACLKeysLevel3::Actions###100-Default" added '<Item>AgentTicketJunk</Item>
Enabled ‘Ticket::Frontend::MenuModule###470-Junk’ and ‘Ticket::Frontend::PreMenuModule###460-Junk’ and set their parameters as I did before.
I could not find Ticket Frontend::Agent:;Ticket::ViewJunk:
I clear the cache and rebooted. No 'Junk' button appears in the TicketZoom windows at all.
What am I missing?
Thanks!
CentOS 7.3.1611
MariaDB 5.5.60
Perl 5.16.3
Hi, I'm installing a new OTRS 6 system and would like to have a Spam Button that closes the ticket - the same as above.
I tried doing exactly as i did before, but without any luck.
What I've done is:
Create a 'Junk' Ticket state.
copied /opt/otrs/Kernel/Modules/AgentTicketClose.pm to AgentTicketJunk.pm and changed 'AgentTicketClose' to 'AgentTicketJunk'
copied /opt/otrs/Kernel/Output/HTML/Templates/Standard/AgentTicketClose.tt AgentTicketJunk.tt
edited /opt/otrs/Kernel/Config/Files/XML/Ticket.xml:
Copied all Settings items with Name="Ticket::Frontend::AgentTicketClose to the bottom of Ticket.xml and changed 'AgentTicketClose' to 'AgentTicketJunk' and 'ViewClose' to 'ViewJunk'
Copied "Frontend::Module###AgentTicketClose" to the bottom of Ticket.xml, changed it to "Frontend::Module###AgentTicketJunk" and changed Ticket Close' to 'Ticket Junk' and 'Close' to 'Junk'.
Under Name="ACLKeysLevel3::Actions###100-Default" added '<Item>AgentTicketJunk</Item>
Enabled ‘Ticket::Frontend::MenuModule###470-Junk’ and ‘Ticket::Frontend::PreMenuModule###460-Junk’ and set their parameters as I did before.
I could not find Ticket Frontend::Agent:;Ticket::ViewJunk:
I clear the cache and rebooted. No 'Junk' button appears in the TicketZoom windows at all.
What am I missing?
Thanks!
-
- Administrator
- Posts: 4250
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to create a Spam/Close window?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 62
- Joined: 13 Mar 2015, 18:34
- Znuny Version: 6.4
- Real Name: Rich Hagan
- Company: Victorinox Swiss Army, Inc.
Re: How to create a Spam/Close window?
No, I didn't....
Thanks!
Thanks!