Prevent agents from modifying closed tickets

Moderator: crythias

Locked
coldrums
Znuny newbie
Posts: 5
Joined: 05 Jun 2012, 19:04
Znuny Version: 3.1.5

Prevent agents from modifying closed tickets

Post by coldrums »

Hello, I'm new to the OtterHub forums (but a long time user of OTRS). Currently, I have the need to configure OTRS to prevent agents from modifying closed tickets, i.e., once a ticket is set to 'closed' state, the agents should not be able to add notes, change queue, reopen the ticket, etc. The ticket should remain read-only.

Going a step further, I'd like to know if it's possible to set the above as "default", and then allow only certain agents to modify closed tickets.

Thank you very much for your help!
OTRS 3.1.5, ITSM 3.1.3 on Debian
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Prevent agents from modifying closed tickets

Post by crythias »

By default this is a per-queue configuration, *however*, it seems perfectly set for an ACL.
http://doc.otrs.org/3.0/en/html/acl.html
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
coldrums
Znuny newbie
Posts: 5
Joined: 05 Jun 2012, 19:04
Znuny Version: 3.1.5

Re: Prevent agents from modifying closed tickets

Post by coldrums »

Thanks crythias! I was thinking exactly that! I suppose something like:

Code: Select all

Properties => {
            Ticket => {
                State => ['Closed'],
            },
Possible => {            
            Action => {
                AgentTicketNote          => 0,
                AgentTicketMove          => 0,
                .
                .
                .
could work, but I don't know the complete list of actions that can be allowed/disallowed and how to allow/disallow actions per group or agent. I've been looking for this info on several places (including OTRS documentation) but no success so far.

Thanks again and I hope you can shed some light on this!
OTRS 3.1.5, ITSM 3.1.3 on Debian
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Prevent agents from modifying closed tickets

Post by jojo »

faq.otrs.org will help you
"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
coldrums
Znuny newbie
Posts: 5
Joined: 05 Jun 2012, 19:04
Znuny Version: 3.1.5

Re: Prevent agents from modifying closed tickets

Post by coldrums »

Thanks for your answers!

After searching carefully, I found this ACL reference, which contains the (almost) full list of actions and other parameters that can be used in ACLs: http://doc.otrs.org/3.1/en/html/ch18s03.html (The link http://faq.otrs.org/otrs/public.pl?Acti ... ;ItemID=68 was useful also)

I implemented the ACL as follows:

Code: Select all

#ACL to disallow modification of closed tickets to all agents
$Self->{TicketAcl}->{'DisallowActions'} = {
    Properties => {
        State => {
            TypeName => ['closed']
        }
    },
    Possible => {
        Action => {
            AgentTicketNote => 0,
            AgentTicketCustomer => 0,
            AgentTicketMove => 0,
            #other actions to disallow... (The ones that aren't in the ACL reference
            #can be found by positioning the mouse over the different links in the AgentTicketZoom interface)
        }
    }
};

#When setting the name of the following ACL, I couldn't use 'AllowActions', as the ACL just didn't work
#(I guess the name can't contain a string in a previous ACL name, but not sure about it)
$Self->{TicketAcl}->{'Permit'} = {
    Properties => {
        User => {
            UserLogin => ['agent_to_be_allowed_to_modify_closed_tickets']
        }
    },
    Possible => {
        Action => {  
            AgentTicketNote => 1,
            AgentTicketCustomer => 1,
            AgentTicketMove => 1,
            #other actions to allow...
        }
    }
};
Maybe this isn't the most efficient way to solve the problem, but it worked for us.
OTRS 3.1.5, ITSM 3.1.3 on Debian
nycjr
Znuny newbie
Posts: 11
Joined: 15 Nov 2013, 19:39
Znuny Version: 3.3.11
Real Name: MG

Re: Prevent agents from modifying closed tickets

Post by nycjr »

oops sorry wrong topic
Locked