cognidox / OTRS-Joomla-Gateway

Provides seamless access to OTRS tickets through Joomla
https://www.cognidox.com/
10 stars 3 forks source link

Hide Queue #40

Open ChuckNorrison opened 9 years ago

ChuckNorrison commented 9 years ago

Hi, i stuck on hiding a specific Queue. Some ideas?

The getTicket Function has some vars:

    $vars = array(
        'TicketID' => array( $id, XSD_STRING ),
        'CustomerUserLogin' => array( $this->_userID, XSD_STRING ),
        'CustomerUserID' => array( $this->_userID, XSD_STRING ),
        'Permission' => array( 'ro', XSD_STRING )
        );

I tried to set a group with no "read only" permissions to the queue i want to hide, but it dont work. I think its cause of the rpc_user i cant configure.

ChuckNorrison commented 9 years ago

Its easy :)

here is a list of possible filteroptions: http://otrs.perl-services.de/docs/otrs/master/kernel_system_ticketsearch.html

we have to change the vars in ticket.php and in tickets.php. In my case i changed the getTickets function in models\tickets.php like this:

    $vars = array(
        'Result' => array( 'ARRAY', XSD_STRING ),
        'CustomerUserID' => array( $this->_userID, XSD_STRING ),
        'Permission' => array( 'ro', XSD_STRING ),
        'Queues' =>  array( ['my queue 1', 'my queue 2'], XSD_STRING )
        );
ChuckNorrison commented 9 years ago

Iam working on Backend Configuration for this setting. I stuck to get it as soap var in the rpchelper.php. I think my Problem is the XSD_STRING Format to build the array...

ChuckNorrison commented 9 years ago

Iam done

https://github.com/ChuckNorrison/OTRS-Joomla-Gateway/commit/e3c3e1a903aac4c249e3666192b3a19f79719cfe

lbourne43 commented 9 years ago

Hi Chuck

Many thanks for the update.

Lewis

ChuckNorrison commented 9 years ago

I used Short Arrays... so the Extension was only working with PHP 5.4 or newer.

with https://github.com/ChuckNorrison/OTRS-Joomla-Gateway/commit/4cce63a1e7980304f9c184d395bd4a1b9aced0b5 it works with every PHP 5 Version