ACL State OTRS 3.1 fail

Moderator: crythias

Post Reply
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

ACL State OTRS 3.1 fail

Post by miguelmz »

Hi

first excuse me by my poor english.

I'm working on the development of workflows in the new otrs. I had experience of how to do it in 3.0.11 modifying the config.pm. We had a running workflow but the update does not work, from the agent when selecting the next state, the state selection by changing the following acl directly as if it origined from the state we want to put.

For example:

Workflow Incident

State:
Open
-> Served
-----> Execution
----------------> Closed
-> Lack information
-----> Open (return to Open)



If my ticket is Open, I should see only available Served and lack information (This part works). I select Served and should continue to be available only Served and lack of information in the case of press the dropdownlist. However, jumps to the next acl and displays only Execution.

my code:

Code: Select all

        #  open => { Served , Lack of information }
        # ------------------------------------------------------------------------------

        $Self->{TicketAcl}->{'ACL1'} = {

        #  match properties
        Properties => {

                                # current ticket match properties
                                User => {
                                        Group_rw => ['Grupo Agent'],
                                        },
                                State => {
                                        Name => ['open'],
                                                  }
                      },

        # return possible options (white list)
        Possible => {

                                # possible ticket options (white list)
                                Ticket => {
                                        State => ['Served','Lack of information'],
                                                  }
                    }
        };

        #  Served => { Execution }
        # -----------------------------------------------------------------------------

        $Self->{TicketAcl}->{'ACL2'} = {

        #  match properties
        Properties => {

                                # current ticket match properties
                                User => {
                                        Group_rw => ['Grupo Agent'],
                        },
                                State => {
                                        Name => ['Served'],
                                                  }
                      },

        # return possible options (white list)
        Possible => {

                                # possible ticket options (white list)
                                Ticket => {
                                        State => ['Execution'],
                                                  },
                    },
        };
}
Someone else has had this problem?

Thx
Miguel.
Last edited by miguelmz on 22 Feb 2012, 11:00, edited 3 times in total.
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: ACL State OTRS 3.1 fail

Post by miguelmz »

I have been researching and have found what is causing this behavior of the acl.

within AgentTicketCompose.dtl, there is an event when it selects a new state

Code: Select all

<script type="text/javascript">//<![CDATA[
    $('#StateID').bind('change', function (Event) {
    Core.AJAX.FormUpdate($('#ComposeTicket'), 'AJAXUpdate', 'StateID', [ $Data{"DynamicFieldNamesStrg"} ]);
});
]]>
</script>
I understand this is forcing reload the page and for some reason takes the role of new status as the current state and jumps to the next acl :?:

at first I tried to delete this event and it works, but then it records the state selected.

Any idea :?:

Thx
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: ACL State OTRS 3.1 fail

Post by miguelmz »

anyone else have this problem?
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
joserribeiro26
Znuny newbie
Posts: 43
Joined: 26 Jan 2012, 16:04
Znuny Version: 6.4
Real Name: José Ribeiro
Company: Service Up - Consultoria ITSM
Contact:

Re: ACL State OTRS 3.1 fail

Post by joserribeiro26 »

I have this problem !
Znuny and OTOBO - ITSM Consultant
jjunior@serviceup.com.br
https://serviceup.com.br
+5516996377778
joserribeiro26
Znuny newbie
Posts: 43
Joined: 26 Jan 2012, 16:04
Znuny Version: 6.4
Real Name: José Ribeiro
Company: Service Up - Consultoria ITSM
Contact:

Re: ACL State OTRS 3.1 fail

Post by joserribeiro26 »

I solve.

In file /opt/otrs/Kernel/System/Ticket.pm

Coment the lines.



# if ( !$StateList{ $State{ID} } ) {
# $Self->{LogObject}->Log(
# Priority => 'notice',
# Message => "Permission denied on TicketID: $Param{TicketID} / StateID: $State{ID}!",
# );
# return;
# }


:-)
Znuny and OTOBO - ITSM Consultant
jjunior@serviceup.com.br
https://serviceup.com.br
+5516996377778
joserribeiro26
Znuny newbie
Posts: 43
Joined: 26 Jan 2012, 16:04
Znuny Version: 6.4
Real Name: José Ribeiro
Company: Service Up - Consultoria ITSM
Contact:

Re: ACL State OTRS 3.1 fail

Post by joserribeiro26 »

Coment this AgentTicketCompose.dtl

#<script type="text/javascript">//<![CDATA[
# $('#StateID').bind('change', function (Event) {
# Core.AJAX.FormUpdate($('#ComposeTicket'), 'AJAXUpdate', 'StateID', [ $Data{"DynamicFieldNamesStrg"} ]);
# });
#//]]></script>

:)
Znuny and OTOBO - ITSM Consultant
jjunior@serviceup.com.br
https://serviceup.com.br
+5516996377778
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: ACL State OTRS 3.1 fail

Post by miguelmz »

Hi, thx for reply.

I'll have to try it thank you very much.
unfortunately in his day had to skip this version and begin production¡ with the 3.0 for this reason :( . At that time I was much a rookie, I will look to see if I can stick it to a new customer :lol: , thx!

Regards.
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
Post Reply