Restrict Results from TicketMoveList

English! place to talk about development, programming and coding
Post Reply
tomste
Znuny newbie
Posts: 3
Joined: 18 Dec 2017, 16:32
Znuny Version: 5s 24
Real Name: Thomas

Restrict Results from TicketMoveList

Post by tomste »

Hi,

is there a possibility to limit the results from the Ticket Move List function?

I have to continue working on a custom development, where the function TicketMoveList is used to get all Queues. The customer now wants to reduce the list of Queues to certain queues. Is that possible?

Code: Select all

my %MoveQueuesTest = $TicketObject->TicketMoveList(
            TicketID => $Self->{TicketID},
            UserID   => $Self->{UserID},
            Action   => $Self->{Action},
            Type     => 'move_into',
        );

        # set move queues
        $Param{QueueTimeStrg} = $LayoutObject->AgentQueueListOption(
            Data => { %MoveQueuesTest, '' => '-' },
            Multiple       => 0,
            Size           => 0,
            Class          => 'Modernize',
            Name           => 'QueueTestID',
            TreeView       => $TreeView,
            OnChangeSubmit => 0,
        );

       $LayoutObject->Block(
            Name => 'QueueTest',
            Data => \%Param,
        );


Thank you very much for your help,

Thomas
wurzel
Znuny guru
Posts: 3217
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Restrict Results from TicketMoveList

Post by wurzel »

Hi,

check the docs for ACL
no code change is needed!

Florian
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.
tomste
Znuny newbie
Posts: 3
Joined: 18 Dec 2017, 16:32
Znuny Version: 5s 24
Real Name: Thomas

Re: Restrict Results from TicketMoveList

Post by tomste »

Hi,

Got it solved.

Thanks for your help.

Regards,
Thomas
Last edited by tomste on 19 Dec 2017, 15:00, edited 1 time in total.
Post Reply