Page 1 of 1

Question about notifications

Posted: Thu Jul 20, 2017 9:49 am
by netdevel
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.

Re: Question about notifications

Posted: Mon Jul 24, 2017 1:38 pm
by Nik
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.

Re: Question about notifications

Posted: Mon Jul 24, 2017 1:56 pm
by netdevel
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.

Re: Question about notifications

Posted: Fri Jul 17, 2020 1:27 pm
by wrc
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.