Question about notifications

Discussion forum about Anuko Time Tracker
Post Reply
netdevel
Posts: 3
Joined: Mon Oct 26, 2015 9:05 am

Question about notifications

Post by netdevel » Thu Jul 20, 2017 9:49 am

Hi all, I just configured notification on my timetracker, but I have a question: is it possible to configure it to not send notification if the report is empty?

Many thanks in advance.

Nik
Posts: 503
Joined: Wed May 26, 2010 5:55 pm

Re: Question about notifications

Post by Nik » Mon Jul 24, 2017 1:38 pm

netdevel wrote:Hi all, I just configured notification on my timetracker, but I have a question: is it possible to configure it to not send notification if the report is empty?

Many thanks in advance.
You'll have to modify the code slightly so that it checks whether a report is empty and acts accordingly.

netdevel
Posts: 3
Joined: Mon Oct 26, 2015 9:05 am

Re: Question about notifications

Post by netdevel » Mon Jul 24, 2017 1:56 pm

Hi Nik, thank you for your reply. I'm not so confident to change the code. What is the php file that I should modify?
Is it possible to ask to anuko to make the changes (perhaps with a check box in the configuration of the report), pay for the change, and distribute it freely to the community?

Thanks again.

wrc
Posts: 305
Joined: Tue May 25, 2010 8:30 pm

Re: Question about notifications

Post by wrc » Fri Jul 17, 2020 1:27 pm

Notification mechanism in Time Tracker has been improved recently by including a condition for each notification, which can utilize either count of items in a report, or hours. For example, you can use something like:

Code: Select all

count > 0
to send a non-empty report, or

Code: Select all

hours > 0
to send a report, which has some at least one non-zero time record. See this for complete explanation.

Post Reply