change close action when checkbox = true

Moderator: crythias

Locked
Feigling
Znuny newbie
Posts: 2
Joined: 13 Sep 2013, 12:32
Znuny Version: 3.2.10
Real Name: Nico
Company: Becosoft

change close action when checkbox = true

Post by Feigling »

Hello,

I'm quite new to OTRS... so this is my first post. I'm setting up OTRS in a mid sized service company where some tickets just needs to be closed, and others needs to be invoiced. To make the transistion easier from our current packet to OTRS I'd like to change the actions on Close

I already added a checkbox on the Agent::ViewClose called Invoice which is by default checked.

Now I like to (i guess) create an ACL that changes what happens when both are true:
- next state: closed successful (or closed unsuccessful)
- Inovoice: checked

I'm not a programmer... but this is what i thought it would look like:

Code: Select all

# Invoice ticket acl
$Self->{TicketAcl}->{'Invoice_ACL'} = {
    # match properties
    Properties => {
        # current ticket match properties state closed and ToBeInvoiced is checked
        Ticket => {
            State => ['Closed'],
            DynamicField_ToBeInvoiced => ['1'],
        }
    },
    # move to queue and set state open
    Ticket => {
                Queue => ['Invoice'],
                State => ['open'],
        },
    },
};
But this doesn't work... Any idea anyone? Or is it totally not possible to change the close action? I'd rather not let agents just move it to another queue.

Thank you!
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: change close action when checkbox = true

Post by wurzel »

Hi,

with ACL you can limit possible options, but not do actions.

If I got you correctly,yYou'll have to use new Generic Agent Module from upcoming 3.3.x :)

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.
Locked