Hi, I’m using Kanboard with MetaMagik plugin, i was trying add date filters to Task Distribution but I see that there are a controller and template doing this. But it does not work.
Excuse me, you answered me in github also, and I put that my plugin version was 1.2.2, but I was wrong, this was the version of kanboard. My version of MetaMagik is 1.5.5
Granted, “Works as intended” does not mean “Works how you expect it to”
If you believe it is not working, then you need to understand what the intent was.
The date range filter is for “Creation” date.
The analytic “Sums” all the fields, and then graphs all the values of each Sum.
It only uses fields that are of type “Number”
So either, you have no tasks within your date range, or you have no fields to sum.
Yes, of course I change files but unrelated with analytics, or so I thought. The getLastIdentifier is an added function in a TaskMetadataModel.
I see in the following code the variable field_total is 0, in my case not enter in the conditional if (!empty($this->taskMetadataModel->get($task[‘id’], $field[‘human_name’], ‘’)) && $field[‘data_type’] === ‘number’ ), so $metrics is empty probably.