[SOLVED] disabling closing of tickets with a dynfileld set

Moderator: crythias

Locked
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

[SOLVED] disabling closing of tickets with a dynfileld set

Post by Giulio Soleni »

Hi,
I am trying to define an ACL to disable closing state and possibly hide the close button from agent's toolbar, for tickets that have a checkbox dynamic field "test01" set.

This is my first attempt:

Code: Select all

---
- ChangeBy: root@localhost
  ChangeTime: 2014-09-03 15:54:19
  Comment: ''
  ConfigChange:
    Possible:
      Action:
        AgentLinkObject: '1'
        AgentTicketBounce: '1'
        AgentTicketClose: '0'
        AgentTicketCompose: '1'
        AgentTicketCustomer: '1'
        AgentTicketForward: '1'
        AgentTicketFreeText: '1'
        AgentTicketHistory: '1'
        AgentTicketLink: '1'
        AgentTicketLock: '1'
        AgentTicketMerge: '1'
        AgentTicketMove: '1'
        AgentTicketNote: '1'
        AgentTicketOwner: '1'
        AgentTicketPending: '1'
        AgentTicketPhone: '1'
        AgentTicketPhoneInbound: '1'
        AgentTicketPhoneOutbound: '1'
        AgentTicketPrint: '1'
        AgentTicketPriority: '1'
        AgentTicketResponsible: '1'
        AgentTicketWatcher: '1'
      Ticket:
        State:
        - new
        - open
        - pending reminder
  ConfigMatch:
    Properties:
      DynamicField:
        DynamicField_test01:
        - Checked
  CreateBy: root@localhost
  CreateTime: 2014-09-03 15:15:02
  Description: Allow close ticket only if the ticket has NOT been checked by customer
  ID: '11'
  Name: 300-Close_on_Approval
  StopAfterMatch: '1'
  ValidID: '1'
nothing changed on the agent ticket view zoom console and the owner still can close tickets with DynamicField_test01 checked.

Second attempt (reversing the logic control with a "PossibleNot" condition):

Code: Select all

---
- ChangeBy: root@localhost
  ChangeTime: 2014-09-03 15:59:45
  Comment: ''
  ConfigChange:
    PossibleNot:
      Ticket:
        State:
        - closed successful
  ConfigMatch:
    Properties:
      DynamicField:
        DynamicField_test01:
        - Checked
  CreateBy: root@localhost
  CreateTime: 2014-09-03 15:15:02
  Description: Allow close ticket only if the ticket has NOT been checked by customer
  ID: '11'
  Name: 300-Close_on_Approval
  StopAfterMatch: '1'
  ValidID: '1'
Again ... nothing changed.

Where am I wrong?
can you help me, please?

thank you,
Giulio

Edit: modified a typo in the second ACL (closed successful) but still not working :(

Edit and SOLVED: Once I stop otrs services, rebuild configuration and restart otrs, the ACL is doing its job!
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Locked