AgentTicketStatusView.pm custom filter

English! place to talk about development, programming and coding
Post Reply
benceignacz
Znuny newbie
Posts: 2
Joined: 10 Jun 2010, 15:31
Znuny Version: 2.4.7

AgentTicketStatusView.pm custom filter

Post by benceignacz »

Hi Guys,

I need create a new custom filter in Status View. I fund the .pm file in the /Kernel/Modules/AgentTicketStatusView.pm, and I try edit a custom filter:

Code: Select all

    # define filter
    my %Filters = (
        Open => {
            Name   => 'open',
            Prio   => 1000,
            Search => {
                StateType  => 'Open',
                OrderBy    => $OrderBy,
                SortBy     => $SortBy,
                UserID     => $Self->{UserID},
                Permission => 'ro',
            },
        },
        Closed => {
            Name   => 'closed',
            Prio   => 1001,
            Search => {
                StateType  => 'Closed',
                OrderBy    => $OrderBy,
                SortBy     => $SortBy,
                UserID     => $Self->{UserID},
                Permission => 'ro',
            },
        },
	
        #<------------My Custom Filter--------------->
        Test => {
            Name   => 'test',
            Prio   => 1002,
            Search => {
                Queue	   => '[MySpecificQue]',
                OrderBy    => $OrderBy,
                SortBy     => $SortBy,
                UserID     => $Self->{UserID},
                Permission => 'ro',
            },
        },
	
    );
The role in this filter, that show only ticket in the specified Que.
The Link is visible in the NavBar, but working bad, because show only the closed tickets.

Can help me anybody?

Thanks: Bence from Hungary
nbe222
Znuny newbie
Posts: 2
Joined: 15 Jun 2010, 09:38
Znuny Version: 2.4.5

Re: AgentTicketStatusView.pm custom filter

Post by nbe222 »

hi,

did you find a solution for this issue ?

norbert
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: AgentTicketStatusView.pm custom filter

Post by crythias »

In this case, it looks like

Code: Select all

 StateType  => 'Open',
was missing in the custom search.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
benceignacz
Znuny newbie
Posts: 2
Joined: 10 Jun 2010, 15:31
Znuny Version: 2.4.7

Re: AgentTicketStatusView.pm custom filter

Post by benceignacz »

Hi,

I'm not find solution for this issue. I try more code, but not solved my problem.
I seached more then over 5 hours on Google but not result.

Code: Select all

QueueID => [any number e.g.:9] #not working
Queue => [any queue] #not working
Any ideas... :(
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: AgentTicketStatusView.pm custom filter

Post by crythias »

Do you need something besides "My Queues"? If you select the queues in the web interface (Preferences, My Queues), you'll only see those queues.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nbe222
Znuny newbie
Posts: 2
Joined: 15 Jun 2010, 09:38
Znuny Version: 2.4.5

Re: AgentTicketStatusView.pm custom filter

Post by nbe222 »

hi,

I also tried to implement a custom filter with "standard scenario" - I added "closed unsuccessful" status.

error message is:
Can't use string ("closed unsuccessful") as an ARRAY ref while "strict refs" in use at ../..//Kernel/System/State.pm line 334.

please help on this,

norbert
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: AgentTicketStatusView.pm custom filter

Post by AlexG »

nbe222 wrote:hi,

I also tried to implement a custom filter with "standard scenario" - I added "closed unsuccessful" status.

error message is:
Can't use string ("closed unsuccessful") as an ARRAY ref while "strict refs" in use at ../..//Kernel/System/State.pm line 334.

please help on this,

norbert
Could somebody write something to this?
I need to create a new filter with "closed unsuccessful" and "closed with workaround".
OTRS 3.2.10
ITSM 3.2.9
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: AgentTicketStatusView.pm custom filter

Post by crythias »

AlexG, please create a new topic as this one began almost 3 years ago. Please indicate your requirements in the topic so the answers may be addressed only to you.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply