Do not change ticket state on customer follow-up

Moderator: crythias

Locked
esaunders
Znuny newbie
Posts: 26
Joined: 29 Jan 2015, 01:28
Znuny Version: 6.0.x
Real Name: Eric Saunders

Do not change ticket state on customer follow-up

Post by esaunders »

I do not want a customer reply to change the state of a ticket. Whether via the web portal or email, customer replies should have no effect on a ticket's state. The solution, prior to OTRS 6, as proposed by crythias way back in 2011

https://forums.otterhub.org/viewtopic.p ... 221#p39971

was to remove a <ValidateModule> tag from Kernel/Config/Files/Ticket.xml

Code: Select all

    
    <ConfigItem Name="PostmasterFollowUpState" Required="1" Valid="1">
        <Description Translatable="1">Defines the state of a ticket if it gets a follow-up.</Description>
        <Group>Ticket</Group>
        <SubGroup>Core::PostMaster</SubGroup>
        <ValidateModule>Kernel::System::SysConfig::StateValidate</ValidateModule> #<---- Remove this line after backing up Ticket.xml 
        <Setting>
            <String Regex="">open</String>
        </Setting>
    </ConfigItem>
and then set Ticket::Frontend::CustomerTicketZoom###StateDefault to $Ticket{State}.

Ticket.xml no longer contains that line of code, so is there a "modern" way to set a custom value for CustomerTicketZoom###StateDefault?

Thanks.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Do not change ticket state on customer follow-up

Post by reneeb »

To keep the state of tickets when emails come in, you should set the 'X-OTRS-FollowUp-State-Keep' header to "1" (use a Postmaster filter to do that).
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Do not change ticket state on customer follow-up

Post by root »

esaunders wrote: 04 Feb 2021, 02:29 I do not want a customer reply to change the state of a ticket. Whether via the web portal or email, customer replies should have no effect on a ticket's state.
Hi Eric,

Use the info from reneeb to prevent state changes from emails and disable the System Configuration Ticket::Frontend::CustomerTicketZoom###State to remove the possibility in the customer portal.

Implement both and you're all set.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
esaunders
Znuny newbie
Posts: 26
Joined: 29 Jan 2015, 01:28
Znuny Version: 6.0.x
Real Name: Eric Saunders

Re: Do not change ticket state on customer follow-up

Post by esaunders »

Thank you, reneeb and Roy. The Postmaster Filter works great.

However, Ticket::Frontend::CustomerTicketZoom###State is already disabled. While disabled, customer replies via web portal set the ticket state to the value of CustomerTicketZoom###StateDefault. I see that enabling CustomerTicketZoom###State gives the customer the option to choose the next state via dropdown. This is not ideal, but it occurred to me that I should be able to force the value of the dropdown via ACL. Does that seem reasonable?

Thanks,
+Eric
Locked