SLA with ACL in kernel/config.pm does not work

Moderator: crythias

Locked
sg23
Znuny newbie
Posts: 11
Joined: 19 Nov 2013, 12:35
Znuny Version: 3.2.8
Real Name: Sebastian

SLA with ACL in kernel/config.pm does not work

Post by sg23 »

Hi,

i added the following acl to my kernel/config.pm in the otrs folder:

Code: Select all

$Self->{TicketAcl}->{'ACL-CompanyServices-1'} =
{
   Properties => {        
          Queue => {
                Name => ['Helpdesk'],
        },
   },

   Possible => {
        Ticket => {
              SLA  => ['SLA Test'],
        },
   },
};
But i can't select the value "SLA Test" in the area "AgentTicketPhone".

The object SLA Test is created:
sla-with-acl.PNG
OTRS Version is 3.2.8.

Can anybody help me? :D
You do not have the required permissions to view the files attached to this post.
- OTRS 3.2.8
- ITSM 3.2.9
wurzel
Znuny guru
Posts: 3272
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: SLA with ACL in kernel/config.pm does not work

Post by wurzel »

Hi,

anything in the webserver error logs? Often you see errors here.

you are root@localhost? ACLs does not work with this user.


Try:

Code: Select all

{
   Properties => {       
          Ticket => {
                 Queue => ['Helpdesk'],
           },
   },

:)

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- 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.
sg23
Znuny newbie
Posts: 11
Joined: 19 Nov 2013, 12:35
Znuny Version: 3.2.8
Real Name: Sebastian

Re: SLA with ACL in kernel/config.pm does not work

Post by sg23 »

Hi again,

i am not root@localhost, i am logged in as a created agent!

And ...

Code: Select all

{
   Properties => {       
          Ticket => {
                 Queue => ['Helpdesk'],
           },
   },
.. results in:

[Wed Nov 20 16:32:34 2013] [error] Not an ARRAY reference at /opt/otrs//Kernel/System/Ticket.pm line 7078.\n


:(
- OTRS 3.2.8
- ITSM 3.2.9
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: SLA with ACL in kernel/config.pm does not work

Post by skullz »

1. Try This ACL. You also may create acl in /opt/otrs/Kernel/Config/Files/ZZZACL.pm

Code: Select all

use utf8;

$Self->{TicketAcl}->{'ACL-CompanyServices-1'} =
{
   Properties => {        
          Ticket => {
                Queue => ['Helpdesk'],
        },
   },

   Possible => {
        Ticket => {
              SLA  => ['SLA Test'],
        },
   },
};

1;

2. Also, please check whether your customer is linked to Service.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
sg23
Znuny newbie
Posts: 11
Joined: 19 Nov 2013, 12:35
Znuny Version: 3.2.8
Real Name: Sebastian

Re: SLA with ACL in kernel/config.pm does not work

Post by sg23 »

1) I will try it ...

2) No customer is linked to any SLA/Service. I want to link all SLA/Services with ACL only. I this the problem? :?
- OTRS 3.2.8
- ITSM 3.2.9
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA with ACL in kernel/config.pm does not work

Post by crythias »

sg23 wrote:2) No customer is linked to any SLA/Service. I want to link all SLA/Services with ACL only. I this the problem?
Yes, it's the problem. Customers have services, services have SLAs. You can have default services, though.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
sg23
Znuny newbie
Posts: 11
Joined: 19 Nov 2013, 12:35
Znuny Version: 3.2.8
Real Name: Sebastian

Re: SLA with ACL in kernel/config.pm does not work

Post by sg23 »

But we have over 1000 customers and i do not want to assign them all to the services.

You say that i can have 'default' services. I can't find any hint do set up the default services. Can you help me?

Thanks!
- OTRS 3.2.8
- ITSM 3.2.9
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA with ACL in kernel/config.pm does not work

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: SLA with ACL in kernel/config.pm does not work

Post by skullz »

Go to Admin > Customer <-> Services > Edit Default Service
Image
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
sg23
Znuny newbie
Posts: 11
Joined: 19 Nov 2013, 12:35
Znuny Version: 3.2.8
Real Name: Sebastian

Re: SLA with ACL in kernel/config.pm does not work

Post by sg23 »

Thanks!

Defining services as default services and blacklist them with the possiblenot entry in the acl definition (like in this topic) works now!

Solved! :D
- OTRS 3.2.8
- ITSM 3.2.9
Locked