GenericAgent: Eskalationsmails nicht für alle Queues?

Hilfe zu OTRS Problemen aller Art
Post Reply
Yabba
Znuny newbie
Posts: 64
Joined: 17 Mar 2011, 12:07
Znuny Version: 3.1.7
Real Name: Michael Kohn

GenericAgent: Eskalationsmails nicht für alle Queues?

Post by Yabba »

Hallo,

ich würde gerne - nein, ich soll ;-) - die Eskalations E-Mails für bestimmte Queues abschalten.

Aktuell nutze ich in der Konfiguration GenericAgent.pm die Benachrichtigung "NotifyAgentGroupOfCustomQueue":

Code: Select all

   'send escalation notifications myqueue' => {
       # get all tickets with these properties
       TicketEscalationTimeOlderMinutes => 120,
       # new ticket properties (no option is required, use just the options which should be changed!)
       New => {
          # notify all agents who selected the queue in "my queues/custom queues"
          Module => 'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
       },
Wenn ich jetzt aber nicht für alle Queues eine E-Mail senden möchte, muss vermutlich das Package Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue angepasst bzw. ein Neues geschrieben werden, oder?

Aktuell wird ja hier gesucht, ob die UserID die Queue markiert hat:

Code: Select all

    # get agentss who are sucscribed the ticket queue to the custom queues
    my @UserIDs = $Self->{TicketObject}->GetSubscribedUserIDsByQueueID(
        QueueID => $Ticket{QueueID},
    );
Hier würde ich gerne etwas ergänzen, wie "aber nur wenn QueueID nicht in der Liste NoMailQueueIDs ist" ... oder so ähnlich ;-)

Leider sind meine Perl-Kenntnisse nur rudimentär....

Jemand eine Idee?

Gruß,
Michael
OTRS 3.3.6 / FAQ 2.3.3 / ImportExport 3.3.5 / SystemMonitoring 2.5.3 / Support 1.5.4
OS: Debian 7 Wheezy / DB: MySQL 5.5 / Webserver: Apache 2.2
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: GenericAgent: Eskalationsmails nicht für alle Queues?

Post by reneeb »

Code: Select all

# keine Mails für Queues mit den IDs 1,6,9 und 17
my @NoMailQueueIDs = (1,6,9,17);

return 1 if grep{ $Ticket{QueueID} == $_ }@NoMailQueueIDs;
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
wurzel
Znuny guru
Posts: 3228
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: GenericAgent: Eskalationsmails nicht für alle Queues?

Post by wurzel »

Hi,

warum bearbeitest Du nicht die Ticket Notification im Frontend (GUI)?

viele Grüße
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply