Author Topic: Automatic notifications about overdue tasks  (Read 4249 times)

supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
Automatic notifications about overdue tasks
« on: September 13, 2010, 07:09:31 am »
 I't possible to send automatically notifications about overdue tasks? How?

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Automatic notifications about overdue tasks
« Reply #1 on: September 13, 2010, 04:20:33 pm »
I am afraid to let you know that right now that feature does not exist but we may take into account for our next version!
Greetings!
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!

brg

  • Freshman
  • *
  • Posts: 22
    • View Profile
Re: Automatic notifications about overdue tasks
« Reply #2 on: September 16, 2010, 05:29:36 am »
Hello, franponce87! =)

Our company create little modification of FO for this goal. May be you can take some code from us.

Ok. For easier updates I'll try create independence plugin.
1. application/models/project_tasks_late/ProjectTasksLate.class.php
Create new method getAllLateTasks for get all overdue tasks and extends ProjectTasks class
2. application/hooks/late_reminders_hook.php
Create function send_late_reminders what notify all subscribers about overdue tasks.
This function has some specific operations:
 - We set this cron event at midnight with period 24 hours. After server reboot cron evens time drop at booting time =(( But we need receive mail at every morning. May be create option for every cron jobs and remove this moment.
 - We do not need receive mail on weekend .. so notifications send on first 5 days on week.

After copy this files you must create event job in DB .. I don't know how to execute it automatically =(
You must run query like this:
Code: [Select]
INSERT INTO og_cron_events (`id`, `name`, `recursive`, `delay`, `is_system`, `enabled`, `date`) VALUES ('9', 'send_late_reminders', '1', '0', '0', '1', '0000-00-00 00:00:00');
Add translate for new phrases.

After this while run cron jobs you receive email about overdue tasks.

If you want see days in mail subject you must apply patch Notifier.class.diff and add {4} into phrases translate, like this
  'late reminder notification task' => '{3}: Task "{0}" is overdue by {4} d!',


I hope I helped you $)

supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
Re: Automatic notifications about overdue tasks
« Reply #3 on: September 16, 2010, 08:47:30 am »
It would be great if someone from FO admins include the feature in next version!

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Automatic notifications about overdue tasks
« Reply #4 on: September 17, 2010, 02:48:08 pm »
Thanks a lot for your contribution brg :)

We will be looking at it into detail as soon as we can, so we may add it for a future version!

Keep up the good work!
Best,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Automatic notifications about overdue tasks
« Reply #5 on: September 04, 2013, 04:05:51 pm »
This is already available in Feng Office 2.0! :)
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

steveg

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: Automatic notifications about overdue tasks
« Reply #6 on: September 07, 2013, 08:08:39 pm »
Conrado - how do we activate in 2.0?  I must have missed this somewhere..

Thanks!

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Automatic notifications about overdue tasks
« Reply #7 on: September 17, 2013, 12:19:37 pm »
This does work correctly in Feng Office 2, whereas there was a bug in one of the 1.7.X versions.
If this does not work correctly, it is because of your settings.
Please bear in mind you can get in touch with our experts if needed be :)

Best regards,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!