We have recently upgraded OTRS 3.0.8 to 3.1.7 where FreeText fields have been migrated to Dynamic Fields. Now with this change I needed to modify our custom Dashlet again that shows Tickets from a Ticket Search based on specific attributes. This Dashlet was created using a XML file. I have followed this article to create it: http://blog.otrs.org/2010/09/26/keep-an ... customers/.
It worked great with the Freetext fields but I cannot get it back to work with Dynamic Fields.
Here are the old attributes:
States=open;States=pending reminder;TicketFreeTextKey3=Support Escalation;TicketFreeText3=Yes
These are the new ones:
States=open;States=pending reminder;DynamicField_TicketFreeTextKey3=Support Escalation;DynamicField_TicketFreeText3=Yes
I have used the developers manual for OTRS 3.1 to find out which variables I should use just like I did with OTRS 3.0 by looking at the function TicketSearch().
Code: Select all
# DynamicFields
        #   At least one operator must be specified. Operators will be connected with AND,
        #       values in an operator with OR.
        #   You can also pass more than one argument to an operator: ['value1', 'value2']
        DynamicField_FieldNameX => {
            Equals            => 123,
            Like              => 'value*',                # "equals" operator with wildcard support
            GreaterThan       => '2001-01-01 01:01:01',
            GreaterThanEquals => '2001-01-01 01:01:01',
            LowerThan         => '2002-02-02 02:02:02',
            LowerThanEquals   => '2002-02-02 02:02:02',
        }Can you tell me what I did wrong here and how to fix it? Thank you in advance!