So in conclusion there's no easy way to maintain the current state when there's a follow up ? I have added some custom open states, the agent sets the state for example to "Demo in progress", but when the customer replies to the ticket email, the state is changed back to open. Looking at all the answers about this topic on the forum, the easier/less intrusive way of accomplishing this seems to be this one:
Modify
Kernel/System/PostMaster/FollowUp.pm as described by crythias at the beginning of this thread, and set
PostmasterFollowUpState's value with '
$Ticket{State}' (without the quotes). This didn't work because it is not possible to change that value through sysconfig. The solution to this is described
here, which is to edit
Kernel/Config/Files/Ticket.xml, search for
PostmasterFollowUpState and remove this line:
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>
After this you can edit
Ticket -> Core::PostMaster PostmasterFollowUpState value and set it to
$Ticket{State}. This works, just tested it on
4.0.11.
I still would like to understand why this field is blocked and the change to
open is forced, what's the logic behind that ? or it's just an old unaddressed bug ?