Hallo,
welche Suchoptionen kann ich unter Attribute auswählen? Ich habe als Beispiel den Block "Eskalierte Tickets" genommen. Die dort angegebenen Attribute ähneln den von TicketSearch(), wenn ich aber z.B. 'states=offen;' (open habe ich vor ca. einem Jahr auf offen geändert) verwende, bekomme ich die Fehlermeldung "[Error][Kernel::System::Ticket::TicketSearch][Line:3621]: The given param 'States' is invalid or an empty array reference!", obwohl ich offene Tickets im System habe...
Welche Attribute gibt es denn?
ich möchte nur die Tickets mit dem Status "offen" und "wiedereröffnet" angezeigt bekommen.
$Self->{'DashboardBackend'}->{'0110-TicketEscalation'} = {
'Attributes' => 'TicketEscalationTimeOlderMinutes=1;SortBy=EscalationTime;OrderBy=Down;',
'Block' => 'ContentLarge',
'CacheTTLLocal' => '0.5',
'Default' => '1',
'Description' => 'All tickets which are escalated!',
'Filter' => 'All',
'Group' => '',
'Limit' => '10',
'Module' => 'Kernel::Output::HTML::DashboardTicketGeneric',
'Permission' => 'rw',
'Time' => 'EscalationTime',
'Title' => 'Escalated Tickets'
};
Dashboard/ Welche Ticketattribute sind suchbar?
-
- Znuny wizard
- Posts: 326
- Joined: 30 Jan 2008, 14:59
- Znuny Version: 6.0.19
- Real Name: Max Hendrik Backs
Dashboard/ Welche Ticketattribute sind suchbar?
Ticket-System
Ubuntu 18.04
OTRS 6.0.19
Ubuntu 18.04
OTRS 6.0.19
-
- Znuny wizard
- Posts: 326
- Joined: 30 Jan 2008, 14:59
- Znuny Version: 6.0.19
- Real Name: Max Hendrik Backs
Dashboard/ Welche Ticketattribute sind suchbar?
Ich konnte mein Problem mittlerweile selbst lösen. Um auch nach StatusIDs selbst im Dashboard zu filtern habe ich folgenden fett gedruckten Teil in der DashboardTicketGeneric.pm hinzugefügt. Mehrere IDs werden mit einem Komma (,) getrennt. Ist vielleicht nicht der gedachte Weg, aber es funktioniert.
ein Beispiel:
'Attributes' => 'StateIDs=3,4;',
Tickets mit der StatusID 3 und 4 werden in dem Block angezeigt.
# get all search base attributes
my %TicketSearch;
my @Params = split /;/, $Self->{Config}->{Attributes};
for my $String (@Params) {
next if !$String;
my ( $Key, $Value ) = split /=/, $String;
#Zeile 136
if ( $Key eq 'StateIDs' ) {
push @{ $TicketSearch{$Key} }, $Value;
}
if ( $Key eq 'StateType' ) {
push @{ $TicketSearch{$Key} }, $Value;
}
elsif ( !defined $TicketSearch{$Key} ) {
$TicketSearch{$Key} = $Value;
}
elsif ( !ref $TicketSearch{$Key} ) {
my $ValueTmp = $TicketSearch{$Key};
$TicketSearch{$Key} = [$ValueTmp];
}
else {
push @{ $TicketSearch{$Key} }, $Value;
}
}
ein Beispiel:
'Attributes' => 'StateIDs=3,4;',
Tickets mit der StatusID 3 und 4 werden in dem Block angezeigt.
# get all search base attributes
my %TicketSearch;
my @Params = split /;/, $Self->{Config}->{Attributes};
for my $String (@Params) {
next if !$String;
my ( $Key, $Value ) = split /=/, $String;
#Zeile 136
if ( $Key eq 'StateIDs' ) {
push @{ $TicketSearch{$Key} }, $Value;
}
if ( $Key eq 'StateType' ) {
push @{ $TicketSearch{$Key} }, $Value;
}
elsif ( !defined $TicketSearch{$Key} ) {
$TicketSearch{$Key} = $Value;
}
elsif ( !ref $TicketSearch{$Key} ) {
my $ValueTmp = $TicketSearch{$Key};
$TicketSearch{$Key} = [$ValueTmp];
}
else {
push @{ $TicketSearch{$Key} }, $Value;
}
}
Ticket-System
Ubuntu 18.04
OTRS 6.0.19
Ubuntu 18.04
OTRS 6.0.19