Redmine-Periodic-Task icon indicating copy to clipboard operation
Redmine-Periodic-Task copied to clipboard

Do not sending email upon creating new task on 3.4.2

Open morevalar opened this issue 8 years ago • 5 comments

Hi! Recently installed new redmine 3.4.2 and your wonderful plugin. And found that after copying of task there is no announcement email. Can you fix it, please? Thank you!

morevalar avatar Sep 20 '17 10:09 morevalar

Hi! I'm not using this plugin right now, but I'll accept a pull request to fix this

jperelli avatar Sep 20 '17 11:09 jperelli

the possible solution is to add something like the following after saving the issue

./lib/scheduled_tasks_checker.rb

      issue.save!
+     Mailer.deliver_issue_add(issue)
      interval = task.interval_number
      units = task.interval_units

ccinos avatar Mar 18 '18 04:03 ccinos

the possible solution is to add something like the following after saving the issue

This did not help, unfortunately.

Pankraty avatar Jul 05 '18 20:07 Pankraty

the possible solution is to add something like the following after saving the issue

This did not help, unfortunately.

I had the same issue, but found it had to do with the user configuration, not the plugin... Once you set to not send mails when you do your own updates and you create a periodic task where the same person is creator and assignee, no mail will be sent. Maybe someone knows how to bypass this setting for the creation of periodic tasks?

cafciel avatar Jan 08 '19 12:01 cafciel

I had the same issue, but found it had to do with the user configuration, not the plugin...

@cafciel thank you for this clarification. You're right, if you set checkbox I don't want to be notified of changes that I make myself no mail will be sent. Bypassing this setting seems inappropriate because mailer functionality lies in the Redmine core and adding there additional parameters specific for this plugin is a game that's not worth the candle. If it's not an security issue for you one possible solution is to create another user (i.e. Redmine Bot) that will be the author of your periodic tasks pointing yourself as assignee.

@jperelli I think this issue should be closed

P.S. ~~In Redmine v4 this solution won't work, plugin source still need to be fixed~~ Fixed by #89

yzzy avatar Jan 09 '19 10:01 yzzy