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.
Question about notifications
Re: Question about notifications
You'll have to modify the code slightly so that it checks whether a report is empty and acts accordingly.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.
Re: Question about notifications
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.
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
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:
to send a non-empty report, or
to send a report, which has some at least one non-zero time record. See this for complete explanation.
Code: Select all
count > 0
Code: Select all
hours > 0