Gerald,

Thanks for your quick response.
I modified this expression ['[RegExp][^(MesaAyuda::SAP)]'] by
['[RegExp][!(^MesaAyuda::SAP)]'] and work fine


Best Regards

Antonio
Message: 1
Date: Fri, 22 Nov 2013 07:30:06 -0500
From: Gerald Young <cryth...@gmail.com>
Subject: Re: [otrs] ACL issue to display services related with some
        queue
To: "User questions and discussions about OTRS." <otrs@otrs.org>
Message-ID:
        <CAKk-oUL3a1-OewuF2YXPkfP8JHETF7yP9J+p=ubagz-+apc...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Test at http://regexpal.com

^ = beginning of string
!=not, but then, you don't have to seek for "not" ... all filters are
applied alphabetically sequentially. So be bold and broad and search
for something that's "all tickets" (lock, unlock, for instance) ...
Apply PossibleNot to that (i.e., every ticket), then Possible when you
have positive criteria to match.

On Thu, Nov 21, 2013 at 11:53 PM, Antonio Sarmiento <asarmie...@mi.cl> wrote:
Hi,

I need display the corresponding services for some groups of queues and for
other queues display other queues

I wrote  this acl scripts

$Self->{TicketAcl}->{'Only-SAP-Services-for-SAP-abcde'} = {
# match properties
Properties => {
Queue => {
Name => ['[RegExp]MesaAyuda::SAP abcde'],
}
},
# return possible options
Possible => {
# possible ticket options
Ticket => {
Service => ['SAP::OPERA','SAP::ADMI'],
},
},
};
$Self->{TicketAcl}->{'aaNOT-SAP-Services-for-NOT-SAP-QUEUES'} = {
# match properties
Properties => {
Queue => {
Name => ['[RegExp][^(MesaAyuda::SAP)]'],
}
},
# return possible options
#Possible => {
PossibleNot => {
# possible ticket options
Ticket => {
Service => ['SAP::OPERA','SAP::ADMI','SAP::PACK','SAP::BOD','SAP::FRI'],
},
},
};

The first step, work fine when it is alone, and show the right service for the sap queue. But when I added the second step to hide sap services for not sap queues, it begun to fail, because it?s only displaying not sap
service in all case, when i choose sap queue or not sap queue
I choose this way, because the not sap services are more than 40.

Somebody could help me

I appreciate your help

Best regards

Antonio
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to