We are upgrading our existing system to OTRS, and currently our customers connect to an external system which sends the customer email through. This has a large amount of information stored in the email body which we populate in the ticket's dynamic fields in the postmaster filter.
In order to tidy up the email for the agents, we want to strip off all data populated as dynamic fields from the body, just leaving the problem description. This also ensures that we can guarantee that filters will only be run against initial ticket emails, since these values will no longer be present in any replies/forwards.
I have written a post-filter module which takes the body of the new article, strips out all but the part of the body I want, and calls ArticleUpdate to perform the update (Key=>'Body', Value=>$StrippedBody). When I run a SQL query, such as
Code: Select all
SELECT ticket.tn, article.a_subject, article.a_body FROM ticket JOIN article ON ticket.id = article.ticket_id
Does anyone know why details displayed in the ticket view are not matching those in the database, and what else I need to do to get the body stripped correctly?