Quantcast
Channel: Znuny Open Source Ticketsystem
Viewing all articles
Browse latest Browse all 300

Dashboard backend ORing conditions

$
0
0
Dear developer community,

our Znuny content managers go wild with creating dashboards based on the Kernel::Output::HTML::Dashboard::TicketGeneric dashboard backend module. :lol:

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.
Has anyone already implemented a dashboard backend module that does ORing of conditions?

Or does anyone have some ideas how to simplify the solution sketched above?

TIA,
Martin

Statistics: Posted by martinv2 — 03 Dec 2024, 14:29 — Replies 0 — Views 109



Viewing all articles
Browse latest Browse all 300

Trending Articles