ACL for specific queue

Moderator: crythias

Post Reply
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

ACL for specific queue

Post by majo053 »

Hi all, I find ACL which define posible priority:

Code: Select all

[b] # ticket acl
    $Self->{TicketAcl}->{'ACL-Name-2'} = {
        # match properties
        Properties => {
            # current ticket match properties
            Ticket => {
                Queue => ['Raw'],
            }
        },
        # return possible options (white list)
        Possible => {
            # possible ticket options (white list)
            Ticket => {
                Priority => ['Incident A'],
            },
        },
    };[/b]
I have in OTRS priority "Incident A" to "D", but I want show only Priority A for queue "Raw". Is this possible?

Thanks!
Last edited by majo053 on 29 Dec 2011, 00:13, edited 1 time in total.
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

Re: ACL for specific queue

Post by majo053 »

Anybody knows?
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL for specific queue

Post by jojo »

yes, this is possible
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

Re: ACL for specific queue

Post by majo053 »

Please how? Many thanks :)
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL for specific queue

Post by jojo »

the ACL you wrote should work if the ticket is stored in the Queue Raw
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

Re: ACL for specific queue

Post by majo053 »

How do ACL so that for a particular queue are displayed only states "Incident A" and "Incident B"? Let other projects are displayed all states.

I have states: Incident A, Incident B, Incident C, Incident D
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

Re: ACL for specific queue

Post by majo053 »

This is for Agent ticket:

Code: Select all

$Self->{TicketAcl}->{'ACL-ABCD'} =
{
   Properties => {
        Queue => { Name => ['[RegExp]^QUEUE_NAME'] },
   },
   Possible => {
        Ticket => {
                Priority  => ['Incident A', 'Incident B' , 'Incident C', 'Incident D'],
              },
   },
};
How to do it for the customer please?
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
majo053
Znuny newbie
Posts: 52
Joined: 08 Nov 2011, 17:28
Znuny Version: 4.0.5

Re: ACL for specific queue

Post by majo053 »

Code: Select all

$Self->{TicketAcl}->{'ACL-aaa'} = {
        Properties => {
                CustomerUser => {
                        Group_rw => [ '[RegExp]^Company group', ],
                        },
                },
        Possible => {
        Ticket => {
                Priority  => ['Incident D'],
                },
        },
};
OTRS and ITSM 4.0.6 (production), MariaDB Ver 15.1 Distrib 5.5.40-MariaDB, CentOS 7.0.1406 (Core)
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

Hello,

I have a Problem with this code.

Why does this code not work for the highlighted Acl? The first Acl works fine.

$Self->{TicketAcl}->{'ACL-ABCD'} =
{
Properties => {
Queue => { Name => ['[RegExp]^QUEUE_NAME'] },
},
Possible => {
Ticket => {
Priority => ['Incident A', 'Incident B' , 'Incident C', 'Incident D'],
},
},
};
$Self->{TicketAcl}->{'ACL-DCBA'} =
{
Properties => {
Queue => { Name => ['[RegExp]^QUEUE_NAME1'] },
},
Possible => {
Ticket => {
Priority => ['Incident E', 'Incident F' , 'Incident G', 'Incident H'],
},
},
};
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: ACL for specific queue

Post by micshi »

You have logical mistakes. The first ACL is always the first to be matched.

You should move the hilighted ACL to top!
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

Is this so because the Queue's or the Priority?
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: ACL for specific queue

Post by micshi »

Both of your queue names have the same prefix 'QUEUE_NAME*', so your hilighted ACL will never get chance to match.
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

This is the Real Code. And the Queues are not similar.

$Self->{TicketAcl}->{'ACL-IT::Software'} =
{
Properties => {
Queue => { Name => ['[RegExp]^IT::Software'] },
},
Possible => {
Ticket => {
TicketFreeKey2 => ['Abhilfe/Workaround'],
TicketFreeText2 => ['Hilfe am Telefon', 'Hilfe per TeamViewer'],
TicketFreeKey5 => ['Code'],
TicketFreeText5 => ['5000 - IT intern (nicht verwenden)'],
},
},
};

$Self->{TicketAcl}->{'ACL-Reklamation'} =
{
Properties => {
Queue => { Name => ['[RegExp]^Reklamation::Telefon'] },
},
Possible => {
Ticket => {
TicketFreeKey2 => ['Abhilfe/Workaround'],
TicketFreeText2 => ['Gutschein', 'Ausgang Kunden-Email / Brief', 'Korrekturrechnung'],
TicketFreeKey5 => ['Code'],
TicketFreeText5 => ['4000 - Technik im Fahrzeug'],
},
},
};
Last edited by Misfitz on 24 Feb 2012, 10:22, edited 1 time in total.
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: ACL for specific queue

Post by micshi »

Properties => {
Queue => { Name => ['[RegExp]^IT::Software'] },
},

The above should be changed like following:

Properties => {
Ticket => {
Queue => ['[RegExp]^IT::Software'],
},
},
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

Thank you.

And the Second??

Can u explain me why this is so?
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: ACL for specific queue

Post by micshi »

You also need to modify the second one.

You ACL have syntax mistakes.
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

Sorry, i don't know what you mean.

This Part works fine:

$Self->{TicketAcl}->{'ACL-IT::Software'}=
{
Properties => {
Ticket => {
Queue => ['[RegExp]^IT::Software'],
},
},
Possible => {
Ticket => {
TicketFreeKey2 => ['Abhilfe/Workaround'],
TicketFreeText2 => ['Hilfe am Telefon', 'Hilfe per TeamViewer'],
TicketFreeKey5 => ['Code'],
TicketFreeText5 => ['5000 - IT intern (nicht verwenden)'],
},
},
};


But this Part doesn't work. It's only a copy of the first Acl with another Queue.

$Self->{TicketAcl}->{'ACL-Reklamation'}=
{
Properties => {
Ticket => {
Queue => ['[RegExp]^Reklamation::Telefon'],
},
},
Possible => {
Ticket => {
TicketFreeKey2 => ['Abhilfe/Workaround'],
TicketFreeText2 => ['Gutschein', 'Ausgang Kunden-Email / Brief', 'Korrekturrechnung'],
TicketFreeKey5 => ['Code'],
TicketFreeText5 => ['4000 - Technik im Fahrzeug'],
},
},
};


I don't understand why this not works.
kprateesh
Znuny newbie
Posts: 1
Joined: 26 Feb 2012, 11:55
Znuny Version: Three
Real Name: Prateesh
Company: FreeLancer

Re: ACL for specific queue

Post by kprateesh »

For me its working fine. see any configuration issue
andystar
Znuny newbie
Posts: 2
Joined: 22 Feb 2012, 07:51
Znuny Version: otterhub
Real Name: Lukas Andy

Re: ACL for specific queue

Post by andystar »

i think it's possible.
Misfitz
Znuny newbie
Posts: 43
Joined: 22 Feb 2012, 16:21
Znuny Version: 3_3_3
Real Name: Patrick Veit
Company: Ametras mobility

Re: ACL for specific queue

Post by Misfitz »

Hi,

the Problem is solved now.

It works fine now. I forgot a bracket ;-)
Post Reply