Can I add more stats in my queue view?

Moderator: crythias

Locked
oscar
Znuny newbie
Posts: 68
Joined: 04 Mar 2011, 11:02
Znuny Version: 3.0.6

Can I add more stats in my queue view?

Post by oscar »

OTRS had provide open view and closed view , can I have add more feature such as pending view ? if really can , how ?
fedora 5.0, OTRS 3.0.6

Professional software engineer
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Can I add more stats in my queue view?

Post by Wolfgangf »

Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
thomkortekaas
Znuny newbie
Posts: 61
Joined: 17 Dec 2010, 13:22
Znuny Version: 3.0

Re: Can I add more stats in my queue view?

Post by thomkortekaas »

You can do this.

Open OTRS\Kernel\Modules\AgentTicketStatusView.pm

On line 76 starts "My%Filters"
here you can add filters, I for example added MyOpenTickets and MyClosedTickets.



my %Filters = (

Closed => {
Name => 'All Closed Tickets',
Prio => 1001,
Search => {
StateType => 'Closed',
OrderBy => $OrderBy,
SortBy => $SortBy,
UserID => $Self->{UserID},
Permission => 'ro',
},
},

MyTickets => {
Name => 'My Closed Tickets',
Prio => 1002,
Search => {
StateType => 'Closed',
OwnerIDs => [ $Self->{UserID} ],
OrderBy => $OrderBy,
SortBy => $SortBy,
UserID => $Self->{UserID},
Permission => 'ro',
},
},

MyOpenTickets => {
Name => 'My Open Tickets',
Prio => 1003,
Search => {
StateType => 'Open',
OwnerIDs => [ $Self->{UserID} ],
OrderBy => $OrderBy,
SortBy => $SortBy,
UserID => $Self->{UserID},
Permission => 'ro',
},
},

Open => {
Name => 'All Open Tickets',
Prio => 1004,
Search => {
StateType => 'Open',
OrderBy => $OrderBy,
SortBy => $SortBy,
UserID => $Self->{UserID},
Permission => 'ro',
},
},
);
OTRS 3.0.7 with MySQL on Windows server 2003 r2 server with AD integration for customers.
oscar
Znuny newbie
Posts: 68
Joined: 04 Mar 2011, 11:02
Znuny Version: 3.0.6

Re: Can I add more stats in my queue view?

Post by oscar »

yeah, I did it, now I got open, close and pending in my status view


furthermore, I want to ask about how to set the unlock and lock ticket? because now when the ticket is lock, other agent will cannot manage the ticket,in addition, once the agents view a ticket and they just click pending and back the ticket will auto lock, how to set do not want the auto lock?


wow, thank you very much for your guys information


appreciate it :D
fedora 5.0, OTRS 3.0.6

Professional software engineer
thomkortekaas
Znuny newbie
Posts: 61
Joined: 17 Dec 2010, 13:22
Znuny Version: 3.0

Re: Can I add more stats in my queue view?

Post by thomkortekaas »

hmm try one or more from these:

SysConfig > Ticket > View Pending
Frontend::Agent::Ticket::ViewPending

Option1
Ticket::Frontend::AgentTicketPending###RequiredLock
No (default value is no)

Option2
Ticket::Frontend::AgentTicketPending###Owner
No (default value is yes)
Option3
Ticket::Frontend::AgentTicketPending###OwnerMandatory
No (default value is no)

(OTRS 3 right ?)
OTRS 3.0.7 with MySQL on Windows server 2003 r2 server with AD integration for customers.
Locked