[SOLVED] locking a ticket and take ownership

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] locking a ticket and take ownership

Post by Giulio Soleni »

Hi,

I'm testing OTRS 3.0.6

I set up some agents with full rw permissions on a queue.
As expected, as soon as a ticket is created, everyone receive a notification and can lock the ticket and/or reply to the ticket, thus becoming the owner of the ticket.

Each other agents (not the owner) that still can access the ticket (e.g. via the dashboard or another view) cannot reply to the ticket (and that's correct, as the ticket is locked by one specific agent) BUT they can change the ownership of the locked ticket thus bypassing the lock, becoming the owner and taking the full control of the ticket.

I cannot tell if that is due to a bug or a wrong setting in the permission, however I would like that the "change ownership" permission could be allowed for unlocked ticket only, or at least I would like to let this permission set for e.g. one admin agent, not just for every agent with rw access to the ticket.

Is there any configuration in sysconfig that I have missed, or should I maybe go through an ACLs to accomplish this?

Thank you in advance,
Giulio
Last edited by Giulio Soleni on 31 Mar 2011, 18:22, edited 1 time in total.
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.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: locking a ticket and take ownership

Post by crythias »

ACLs or group permission.
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
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

Re: locking a ticket and take ownership

Post by Giulio Soleni »

Hi crythias and thankyou for the fast reply.
I think I will use ACL, but I would like to add something:

1.
On the Ticket -> Frontend::Agent::Ticket::ViewOwner
The first parameter is Ticket::Frontend::AgentTicketOwner###Permission and is set to "owner" by default.
On the explanation we can read:
"Required permissions to use the ticket owner screen of a zoomed ticket in the agent interface"
That could solve my issue: allow only the present owner of a ticket to change the ownership of that ticket.
I misunderstood the meaning of this setting?

2.
If I set group permissions I cannot separate the permission to reply to a ticket (that as far as I know is granted only if I assign a full rw permission) from the "change owner" permission.
I mean, it is not possible to have a setting like:
RO [x] MOVE_INTO [x] CREATE [x] NOTE [x] OWNER [ ] PRIORITY [x] RW [x]
because, as soon as I set RW [x] all other permissions are also set.
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.
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

Re: locking a ticket and take ownership

Post by Giulio Soleni »

I have tried this:

Code: Select all

$Self->{TicketAcl}->{'ACL-Name-1'} = {
        # match properties
        Properties => {
            # current ticket match properties
            Ticket => {
                Lock => ['lock'],
            }
        },
        # return not possible options (black list)
        PossibleNot => {
            Action => {
                AgentTicketOwner => 0,
            },
        },
    };
with no success :(

I'm trying to disable "Owner" action for locked ticket.

May you please help?
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.
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: locking a ticket and take ownership

Post by ferrosti »

Have a look at Core::Ticket => System::Permission
There you will be able to specify more permissions, just as you need them.

One problem I had in an older version is that as soon as you remove the 'owner' permission from an agent he will not be able to lock tickets in this queue, since a lock also changes owner to the one who locks it. Even worse, if you have set the system to autolock in view, you won t even be able to view the ticket.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
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

Re: locking a ticket and take ownership

Post by Giulio Soleni »

The solution to my question :)

Code: Select all

$Self->{TicketAcl}->{'ACL-Name-1'} = {
        # match properties
        Properties => {
            # current ticket match properties
            Ticket => {
                Lock => ['lock'],
            }
        },
        # return not possible options (black list)
        Possible => {
            Action => {
                AgentTicketOwner => 0,
            },
        },
    };
That is... I had to change from PossibleNot to Possible un the ACL.
In that way I disable the "Change Ownership" action for all locked tickets.
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.
mshi
Znuny newbie
Posts: 66
Joined: 08 Mar 2011, 11:10
Znuny Version: 3.0

Re: [SOLVED] locking a ticket and take ownership

Post by mshi »

Nice Tip, I booked it.

Mshi
OTRS: 3.0.7
ITSM: 3.0.2
Running on: Ubuntu 10.04 LTS with MySQL, integrated with MS 2003 Active Directory Server
Locked