Problem with ACL on Process Ticket
Moderator: crythias
Problem with ACL on Process Ticket
Hey guys
Here's my scenario... I have 4 ACLs working together, the first two of them check a DynamicField where the customer is suposed to choose the Department that will respond the ticket, and based on his selection hes gonna be able to pick only the Type (ie.: Incident, Service Request,...) that the choosen department is able to respond.
In a second moment comes the other two ACLs, where he gonna pick an available Ticket Type and only will see Services of that Type.
Everything works really fine when using Web Ticket, but for some reason when using Process Ticket the system ignores the first two ACLs, no matter what Department I pick in the DynamicField all Types of Tickets are displayed.
Any idea what's going on?
Thanks in advance
Here's my scenario... I have 4 ACLs working together, the first two of them check a DynamicField where the customer is suposed to choose the Department that will respond the ticket, and based on his selection hes gonna be able to pick only the Type (ie.: Incident, Service Request,...) that the choosen department is able to respond.
In a second moment comes the other two ACLs, where he gonna pick an available Ticket Type and only will see Services of that Type.
Everything works really fine when using Web Ticket, but for some reason when using Process Ticket the system ignores the first two ACLs, no matter what Department I pick in the DynamicField all Types of Tickets are displayed.
Any idea what's going on?
Thanks in advance
-
- Znuny newbie
- Posts: 31
- Joined: 03 Jan 2017, 20:16
- Znuny Version: 4 and 5
- Real Name: Dexter
- Company: Morgan
Re: Problem with ACL on Process Ticket
hey man
can you give screenshots of each acl and put them in the correct order one by one? like a diagram
can you give screenshots of each acl and put them in the correct order one by one? like a diagram
-
- Znuny newbie
- Posts: 31
- Joined: 03 Jan 2017, 20:16
- Znuny Version: 4 and 5
- Real Name: Dexter
- Company: Morgan
Re: Problem with ACL on Process Ticket
thanks
first thing that i have noticed - we are talking about the process ticket and ACL - i do not see any "catching" of process id / activity id / activity dialog id - all these things should be in ACLs
could you please try that? since we need to CATCH maximum criterias in order to make ACL working, so when you give more conditions in your ACLs - the better it works
first thing that i have noticed - we are talking about the process ticket and ACL - i do not see any "catching" of process id / activity id / activity dialog id - all these things should be in ACLs
could you please try that? since we need to CATCH maximum criterias in order to make ACL working, so when you give more conditions in your ACLs - the better it works
Re: Problem with ACL on Process Ticket
hmm I see... Im kinda new to the OTRS, but assuming the ACLs work for Web Ticket shouldnt it work the same way for the process ticket? I mean, the "second filter" (ACLs 03 and 04) works fine in both cases, the problem seems to be with the Dynamic Field or something related to it and only for process ticket.
Processo = Process Ticket
Centro de Custo = DynamicField
Tipo = Ticket Type
Serviço = Service
Processo = Process Ticket
Centro de Custo = DynamicField
Tipo = Ticket Type
Serviço = Service
-
- Znuny newbie
- Posts: 31
- Joined: 03 Jan 2017, 20:16
- Znuny Version: 4 and 5
- Real Name: Dexter
- Company: Morgan
Re: Problem with ACL on Process Ticket
i think once you create a proper acl for a process, you will get the idea how it works! so from your words it should look like this:
<acl>
<conditions>
-process ID check
-activity check (we know that one activity can have several activity dialogs)
-activity dialog check
-some dynamic field check
</conditions>
<action>
your actions
</action>
</acl>
<acl>
<conditions>
-process ID check
-activity check (we know that one activity can have several activity dialogs)
-activity dialog check
-some dynamic field check
</conditions>
<action>
your actions
</action>
</acl>
Re: Problem with ACL on Process Ticket
Right, let me give a try then I post the results
Re: Problem with ACL on Process Ticket
No lucky, same problem.
The new ACL:
I dont know if it's relevant, but the system really seems to ignore the DynamicField in the Process Ticket. When I pick the Ticket Type I can see a quick animation in the Service Dropdown field, like the ACL is running the filter, the same animation dont happen in the Ticket Type when I choose the option in the DynamicField for the Process Ticket, but the animation happens when Im on the Web and Phone Ticket meaning the ACL works.
I dont know, there is anything I need to enable in the sysconfig to make the DynamicField readable for process ticket?
The new ACL:
I dont know if it's relevant, but the system really seems to ignore the DynamicField in the Process Ticket. When I pick the Ticket Type I can see a quick animation in the Service Dropdown field, like the ACL is running the filter, the same animation dont happen in the Ticket Type when I choose the option in the DynamicField for the Process Ticket, but the animation happens when Im on the Web and Phone Ticket meaning the ACL works.
I dont know, there is anything I need to enable in the sysconfig to make the DynamicField readable for process ticket?
-
- Znuny newbie
- Posts: 31
- Joined: 03 Jan 2017, 20:16
- Znuny Version: 4 and 5
- Real Name: Dexter
- Company: Morgan
Re: Problem with ACL on Process Ticket
process id -> activity id -> activity dialog id = success
Re: Problem with ACL on Process Ticket
I also tried to set the ACL in the Config.pm file
This way works fine in the Web and Phone Ticket, but not in the in the Process Ticket
Made this to adapt to Process but still not work
Any ideas what Im doing wrong?
This way works fine in the Web and Phone Ticket, but not in the in the Process Ticket
Code: Select all
$Self->{TicketAcl}->{'001-ACL-CentroCustoTI'} = {
Properties => {
DynamicField => {
DynamicField_centrocusto => ['TI-RJ'],
}
},
Possible => {
Ticket => {
Type => ['Incidente', 'Requisição de Serviço TI'],
},
},
};
Code: Select all
$Self->{TicketAcl}->{'001-ACL-CentroCustoTI'} = {
Properties => {
Process => {
ProcessEntityID => ['Process-01b2b63ce6c77173d96f3cbe2218d0c7'],
ActivityEntityID => ['Activity-5b63365b1087f6956212d4e73182b9e1'],
ActivityDialogEntityID => ['ActivityDialog-1c1712ea1a2aa7ed6e8b7d44a5d42e0a'],
},
DynamicField => {
DynamicField_centrocusto => ['TI-RJ'],
}
},
Possible => {
Ticket => {
Type => ['Incidente', 'Requisição de Serviço TI'],
},
},
};
-
- Administrator
- Posts: 4011
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Problem with ACL on Process Ticket
Looks fine so far for me, but I remeber there was a bug: https://bugs.otrs.org/show_bug.cgi?id=12110
but this one should be fixed in your version. Can you double check your version?
but this one should be fixed in your version. Can you double check your version?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Problem with ACL on Process Ticket
I'm using the version 5.0.16root wrote:Looks fine so far for me, but I remeber there was a bug: https://bugs.otrs.org/show_bug.cgi?id=12110
but this one should be fixed in your version. Can you double check your version?