da schon öfters die Frage gesehen habe, welche Suchoptionen man beim Generic Agent verwenden kann habe ich fast alle Optionen des TicketSearch getestet. Das Ergebnis findet Ihr im Code. Getestet habe ich über
Code: Select all
<otrs-home>/bin/GenericAgent.pl -c Kernel::Config::GenericAgentTest
Code: Select all
#+ Es wurde was gefunden
#- Es gab eine Fehlermeldung, ich habe den Punkt zur Vollständigkeit nicht gelöscht
#? Ich weiß nicht, wofür es gut ist
Alle Optionen unter NEW habe ich aus der Doku gesammelt, aber nicht alle getestet.
<otrs-home>/Kernel/Config/GenericAgentTest.pm
Code: Select all
# --
# Kernel/Config/GenericAgentTest.pm - config file of generic agent
# Copyright (C) 2001-2008 xxx, http://otrs.org/
# --
# $Id: GenericAgent.pm.dist,v 1.12 2008/04/29 13:17:30 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl-2.0.txt.
# --
package Kernel::Config::GenericAgentTest;
use strict;
use warnings;
use vars qw($VERSION @ISA @EXPORT %Jobs);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(%Jobs);
use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.12 $)[1];
# -----------------------------------------------------------------------
# config options
# -----------------------------------------------------------------------
%Jobs = (
'Aktion' => {
#+ TicketNumber => '%21000120%',
#- TicketNumber => ['%123546%', '%123666%'],
#+ Title => '%ome%',
#+ Title => ['%ome%', '%Tit%'],
#+ Queues => ['Ticketeingang'], # oder
#+ QueueIDs => [1, 2, 3],
#+ UseSubQueues => 1,
#+ Types => ['change', 'incident'],
#+ TypeID => [3, 4],
#+ States => ['neu', 'offen' ],
#+ StateIDs => [3, 4],
#+ StateType => 'Open',
#+ StateType => ['open', 'new'],
#+ StateTypeIDs => [1, 2, 3],
#+ Priorities => ['1 very low', '2 low', '3 normal'],
#+ PriorityIDs => [1, 2, 3],
#+ Services => ['Regelzeit', 'Bereitschaft' ],
#+ ServiceIDs => [1, 2, 3],
#+ SLAs => ['SLA 1', 'SLA 2' ],
#+ SLAIDs => [1, 2, 3],
#+ Locks => ['unlock'],
#+ LockIDs => [1, 2, 3],
#- OwnerIDs => [1, 2]
#- ResponsibleIDs => [1, 12, 455, 32]
#+ WatchUserIDs => [1, 2],
#+ CustomerID => 'Kunden#',
#+ CustomerID => ['Kunden#1', 'Kunden#2'],
#+ CustomerUserLogin => 'Userlogin',
#+ CustomerUserLogin => ['Userlogin1', 'Userlogin2'],
#- CreatedUserIDs => [1, 12]
#+ CreatedTypes => ['change', 'incident'],
#+ CreatedTypeIDs => [1, 2, 3],
#+ CreatedPriorities => ['1 very low', '2 low', '3 normal'],
#+ CreatedPriorityIDs => [1, 2, 3],
#+ CreatedStates => ['new', 'open'],
#+ CreatedStateIDs => [3, 4],
#+ CreatedQueues => ['Queue1', 'Queue2'],
#+ CreatedQueueIDs => [1, 2, 3],
#+ TicketFreeKey1 => 'Produkt',
#+ TicketFreeText1 => 'adfsa',
#+ TicketFreeKey2 => ['Produkt', 'Mosaik'],
#+ TicketFreeText2 => ['Browser', 'Sound'],
#+ TicketFreeTime1NewerDate => '2006-01-09 00:00:01',
#+ TicketFreeTime1OlderDate => '2006-01-19 23:59:59',
#+ From => '%spam@example.com%',
#+ To => '%client@example.com%',
#+ Cc => '%client@example.com%',
#+ Subject => '%VIRUS 32%',
#+ Body => '%VIRUS 32%',
#? FullTextIndex => 1,
#+ TicketCreateTimeOlderMinutes => 60,
#+ TicketCreateTimeNewerMinutes => 120,
#+ TicketCreateTimeNewerDate => '2006-01-09 00:00:01',
#+ TicketCreateTimeOlderDate => '2006-01-19 23:59:59',
#+ TicketCloseTimeOlderMinutes => 60,
#+ TicketCloseTimeNewerMinutes => 120,
#+ TicketCloseTimeNewerDate => '2006-01-09 00:00:01',
#+ TicketCloseTimeOlderDate => '2006-01-19 23:59:59',
#? TicketPendingTimeOlderMinutes => 60, # Message: No valid time format '1222417078'!
#? TicketPendingTimeNewerMinutes => 120, # Message: No valid time format '1222413523'!
#+ TicketPendingTimeNewerDate => '2006-01-09 00:00:01',
#+ TicketPendingTimeOlderDate => '2006-01-19 23:59:59',
#+ TicketEscalationTimeOlderMinutes => -60,
#+ TicketEscalationTimeNewerMinutes => -120,
#+ TicketEscalationTimeNewerDate => '2006-01-09 00:00:01',
#+ TicketEscalationTimeOlderDate => '2006-01-09 23:59:59',
# new ticket properties
New => {
# Title => 'Some Ticket Title',
# Queue => 'Ticketeingang',
# QueueID => 2,
# Lock => 'unlock',
# Priority => '2 low',
# PriorityID => 3,
# State => 'neu',
# StateID => 1,
# Type => 'Incident',
# TypeID => 2,
# Service => 'Bereitschaft',
# ServiceID => 2,
# SLA => 'SLA 1',
# SLAID => 1,
# CustomerID => '123465',
# OwnerID => 2,
# TicketFreeText1 => 'Expert required!',
# TicketFreeKey1 => 'ProductSkill',
# Note => {
# From => 'GenericAgent',
# Subject => 'spam!',
# Body => 'Closed by GA!',
# ArticleType => 'note-internal', # note-internal|note-external|note-report
# };
# Module => 'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
# # notify all agents who selected the queue
# #in "my queues/custom queues"
# Module => 'Kernel::System::GenericAgent::NotifyAgentGroupWithWritePermission',
# # notify all agents who can access the ticket
# # with rw permissions
# CMD => '/path/to/your/program',
# Delete => 1, # Ticket aus der Datenbank löschen!
},
},
);
# -----------------------------------------------------------------------
# end of config options
# -----------------------------------------------------------------------
1;
mfg
mbacks