Restrict Results from TicketMoveList

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

Moderator: tto

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

Restrict Results from TicketMoveList

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

Re: Restrict Results from TicketMoveList

Postby wurzel » 18 Dec 2017, 20:27

Hi,

check the docs for ACL
no code change is needed!

Florian
    OTRS 6.0.x, LAMP LIVE auf Debian 9
    OTRS Business Solution™ 5 Managed Silver

    -- ich gebe keine Unterstützung für die Windows Installation :-) I don't support Windows installations :)
    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: 2
    Joined: 18 Dec 2017, 16:32
    OTRS Version?: 5s 24
    Real Name: Thomas

    Re: Restrict Results from TicketMoveList

    Postby 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.


    Return to “OTRS Developers”

    Who is online

    Users browsing this forum: No registered users and 2 guests

    cron