our Znuny content managers go wild with creating dashboards based on the Kernel::Output::HTML::Dashboard::TicketGeneric dashboard backend module.
They now are facing the situation that a set of tickets to be displayed can't be expressed in a single Attributes set of conditions, but that they'd like to display two Attributes sets in a single dashboard (like when the attributes get ORed together). Unfortunately, TicketGeneric only allows ANDed conditions.
I thought about creating a new module based on TicketGeneric which specifies an array of values for the Attributes setting, but looking at the code this seems like a lot of work:
- wrap sub _SearchParamsGet to be able to pass in every single Attributes value,
- call the wrap routine in the two places _SearchParamsGet is called (in FilterContent() and Run()), and bracket the code from the calls up to any TicketSearch call in a loop iterating over the Attributes values
- throw together the returned data in a result set.
Or does anyone have some ideas how to simplify the solution sketched above?
TIA,
Martin