Restrict Results from TicketMoveList

English! place to talk about OTRS development, programming and coding

Moderator: tto

Post Reply
tomste
OTRS newbie
Posts: 3
Joined: 18 Dec 2017, 16:32
OTRS Version?: 5s 24
Real Name: Thomas

Restrict Results from TicketMoveList

Post by tomste » 18 Dec 2017, 19:34

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
OTRS guru
Posts: 2446
Joined: 08 Jul 2010, 22:25
OTRS Version?: 6.0.x

Re: Restrict Results from TicketMoveList

Post by wurzel » 18 Dec 2017, 20:27

Hi,

check the docs for ACL
no code change is needed!

Florian
    ((OTRS)) Community Edition 6.0.x, LAMP LIVE auf Debian 9
    OTRS 6 Managed Silver

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

    Re: Restrict Results from TicketMoveList

    Post by tomste » 19 Dec 2017, 14:15

    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