Loading...
 
Features / Usability

Features / Usability


Timed (hours not dates) notification based on tracker items

posts: 8633 Israel

Hello,

I've been moving since a few days trying to find a solution for daily alerts based on trackers.

Example;
In a tracker, I have a task, a trackeritems with username, date, task description and a checkbox (completed).

This task is recreated everyday using a listExecute and scheduler item (automatic) that duplicate the item every day after midnight defaulting the date field to same (new) day.

This is working fine.

Now I want to add a mechanism that will send a notification to the user attached to the task if an hour has passed since this task should have been completed. (still using listExecute)

This intend I have a reference time for the task to be done and a limit time that if passed, the notification should be sent. As those should be fixed I can't use the existing date field (time is modified on duplication).

So my best guess is that I should create 2 "date and time" fields (Tiki doesn't have just time), use mathematical fields to curate the dates and have something like "tasktime" (8:00) and "tasktimelimit" (9:00).

Setup in a listExecute ran every hours with a filter to check if tasktimelimit > (tasktime + 1hour) (this last chunk I'm still unsure).

Does smart have other ideas ?
(Duration field ?)

posts: 8633 Israel

Some "kind" of progress...

Preserve the limit time for completion
I ended creating a second Date and Time field to store the hour the task should have been completed (and from which value an alert should be sent).

Duplication of things but... it works.

Now on item duplication this field is not modified (so alert will be everyday at 8:00 if item has not been completed)

Filter items where now > limit time for completion + 1hour
ie: if a limit time for completion = 6:00 and an hour has passed => send alert.

To filter in a list execute the items that passed 1 hour I played with the plugin list and finally got it like this

Copy to clipboard
{filter range="tracker_field_momentTimeForTheEndOfTheTask" to="-1hour" gap="1 hour"}

It look weird to me but it work.

To be continued...



Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting