f0y / due_date_reminder Goto Github PK
View Code? Open in Web Editor NEWRedmine plugin that sends notifications
License: Other
Redmine plugin that sends notifications
License: Other
It could be nice to be able to choose in settings of the plugin whether to remind the author about overdue issues or not
Hi,
is there a possibility to send emails if the assigned user is a group? If not, is there a plan to add this feature?
NokSuKao
In file /lib/reminder/view_hook.rb (line 19), you should use #{l(:text_comma_separated)} so the text is adapted to your locale (like in the default notification settings) and it can use the whole space instead of the labels width.
Iv got bitnami redmine 2.3.2 on amazon. Ma account panel lokk like this:
and when ima trying to save settings on this page i get internal error.
Log from this situation:
Processing by MyController#account as HTML
Parameters: {"utf8"=>"โ", "authenticity_token"=>"nVCEnzNU0ODZta4RBa730XJ43S0U3vbKn3P4ZbRNxoU=", "user"=>{"firstname"=>"Chytry", "lastname"=>"Chytry", "mail"=>"[email protected]", "language"=>"pl", "reminder_notification"=>"1,3,5", "mail_notification"=>"all"}, "commit"=>"Zapisz", "pref"=>{"no_self_notified"=>"0", "hide_mail"=>"0", "time_zone"=>"Warsaw", "comments_sorting"=>"asc", "warn_on_leaving_unsaved"=>"1"}}
Current user: Chytry (id=1)
Completed 500 Internal Server Error in 5ms
ActiveRecord::UnknownAttributeError (unknown attribute: reminder_notification):
lib/redmine/safe_attributes.rb:84:in safe_attributes='
app/controllers/my_controller.rb:54:inaccount'
Additionaly i can even unninstal it:
After typing:
rake redmine:plugins:migrate NAME=due_date_reminder VERSION=0 RAILS_ENV=production
and deleting plugin folder redmine doesnt work anymore.
Any help?
Hi,
I'm trying to solve why the mails are not coming through. Please, check this:
rake redmine:reminder_plugin:send_notifications RAILS_ENV=production --trace
** Invoke redmine:reminder_plugin:send_notifications (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:reminder_plugin:send_notifications
In the log, I can verify:
Connecting to database specified by database.yml
OpenIdAuthentication.store is nil. Using in-memory store.
Creating scope :active. Overwriting existing method User.active.
Creating scope :open. Overwriting existing method Version.open.
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in CollectiveIdea::Acts::NestedSet::Model instead. (called from include at /home/projec12/redmine-2.0.2/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:58)
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in CollectiveIdea::Acts::NestedSet::Model instead. (called from include at /home/projec12/redmine-2.0.2/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:58)
Creating scope :open. Overwriting existing method Issue.open.
Rendered plugins/due_date_reminder/app/views/reminder_mailer/due_date_notification.text.erb within layouts/mailer (37.8ms)
Rendered plugins/due_date_reminder/app/views/reminder_mailer/due_date_notification.html.erb within layouts/mailer (1.4ms)
However.... no mail.... do you have any tip?
Regards,
Anibal
Add new settings to plugin configuration "Send reminding emails on the following days of the week: 1,2,3,4,5"
It means that reminder won't send emails at saturday and sunday.
Translation file is sent by @t0m4-null
Hi, i get this error while installing the plugin:
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
[!] There was an error parsing `Gemfile`:
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: simplecov (~> 0.9.1) and simplecov (>= 0). Bundler cannot continue.
# from /home/www/redmine/plugins/due_date_reminder/Gemfile:4
# -------------------------------------------
# group :test do
> gem 'simplecov'
# gem 'simplecov-rcov'
# -------------------------------------------
. Bundler cannot continue.
# from /home/www/redmine/Gemfile:109
# -------------------------------------------
# Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
> eval_gemfile file
# end
# -------------------------------------------
Redmine version 3.4.3.stable
Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux]
Rails version 4.2.8
I would like to have a following reminders:
Only once in a day. Everyday.
Kindly advise, if this can be supported from plugin?
Regards,
Whats the differendce between redmines and the plugin implementation?
know the gui allows to define the days and implicit the users.
Does the plugin send one email for all reminds per user or per issue per user (this would mean spam)
Does it send only one reminder per issue or every rake call one reminder per mail, although this issue already has been reminded the day before? (this would mean spam also)
Since 2.3 redmine has its own rake taks to send reminder mails.
http://www.redmine.org/projects/redmine/wiki/RedmineReminderEmails
I can send emails to users with 1 who have assigned issues that are due in the next of days:
Do you make use of that ? How des it deal with the questions i asked above?
I am sking where are the differences and how to merge both in one solution ..
When I try to send the notification i have this error :
** Invoke redmine:reminder_plugin:send_notifications (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:reminder_plugin:send_notifications
rake aborted!
NoMethodError: undefined method scoped' for #<Issue::ActiveRecord_Relation:0x00000004cf34e8> /var/lib/gems/1.9.1/gems/activerecord-4.2.3/lib/active_record/relation/delegation.rb:136:in
method_missing'
/var/lib/gems/1.9.1/gems/activerecord-4.2.3/lib/active_record/relation/delegation.rb:99:in method_missing' /opt/redmine/redmine-3.0/plugins/due_date_reminder/app/models/reminder_mailer.rb:33:in
find_issues'
/opt/redmine/redmine-3.0/plugins/due_date_reminder/app/models/reminder_mailer.rb:15:in due_date_notifications' /opt/redmine/redmine-3.0/plugins/due_date_reminder/lib/tasks/reminder.rake:5:in
block (4 levels) in <top (required)>'
/opt/redmine/redmine-3.0/app/models/mailer.rb:383:in with_synched_deliveries' /opt/redmine/redmine-3.0/plugins/due_date_reminder/lib/tasks/reminder.rake:4:in
block (3 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in call' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in each' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in each' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in run' /var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in
<top (required)>'
/usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in
when clicking configure I get 404 error and the log shows:
Processing by SettingsController#plugin as HTML
Parameters: {"id"=>"due_date_reminder"}
Current user: admin (id=1)
Rendered settings/plugin.html.erb within layouts/admin (4.5ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.4ms)
Rendered plugins/redmine_announcements/app/views/application/_announcements.html.erb (0.7ms)
Completed 404 Not Found in 31ms (Views: 14.8ms | ActiveRecord: 0.6ms)
Environment:
Redmine version 2.3.1.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Hi!
I've installed the Due Date Reminder Plugin on my 2.1. Redmine. Accroding to http://www.redmine.org/plugins/due_date_reminder it should be compatible with 2.1.
But after installing, migrate and restarting I get a 500 Error after Login.
The log states :
Started GET "/redmine/my/page" for 84.00.00.172 at Wed Oct 03 13:45:01 +0200 2012
Processing by MyController#page as HTML
Current user: admin (id=1)
Rendered issues/_list_simple.html.erb (10.0ms)
Rendered my/blocks/_issuesassignedtome.html.erb (227.0ms)
Rendered issues/_list_simple.html.erb (30.0ms)
Rendered my/blocks/_issuesreportedbyme.html.erb (156.0ms)
Rendered my/page.html.erb within layouts/base (1151.1ms)
Completed 500 Internal Server Error in 1624ms
ActionView::Template::Error (undefined method association_class' for nil:NilClass):
33 <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
34:
35: <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
36:
37: <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
38: <% end %>
39: <%= render_project_jump_box %>
app/helpers/application_helper.rb:268:inrender_project_jump_box' app/views/layouts/base.html.erb:36:in `_app_views_layouts_base_html_erb___201915114_99968940'
I have also tried the solution mentioned here: http://www.redmine.org/boards/3/topics/30930?r=30973#message-30973
Any suggestions here? Thank you!
It will be good ta add notification about pending issues (for example, planed or delayed). Start date notifications should have separate setting and can be disabled.
Hi,
After installing the due_date _reminder plugin,I can see the default notification settings in the plugins/Due Date Redminder plugin/configure,it's fine,but the column "Remind about issues on these days" not in the user account page,screenshot as below,could you give me a favor?Thanks in advanced.
I am currently developing project management system using Bitnami Redmine. I am using Redmine 1.4x version.
After i found your due date notification plugin, i was like, that's what i need in my project.
I copied your plugins to: C:\BitNami\redmine-1.4.7-2\apps\redmine\htdocs\vendor\plugins folder
So now, when trying to implement the plugin it doesnot even get migrated.
I dont get what the problem with user.rb
Please help me
I get the following in my log for the chron job:
rake aborted!
undefined method `with_synched_deliveries' for Mailer:Class
Tasks: TOP => redmine:reminder_plugin:send_notifications
(See full trace by running task with --trace)
Any suggestion?
UPDATE:
alnmuniz commented: hi, the file do patch is mailer.rb, here it is located at "redmine install dir"\app\models. All you have to do is copy the with_synched_deliveries method body from the latest version (get it here https://github.com/redmine/redmine/blob/master/app/models/mailer.rb) and paste it into your current mailer.rb version. where exactaly? well, I put it right after the with_deliveries method, but I guess it might work anywhere within the class body. :)
It is vers useful to be able to disable the whole email sending for a time, without need to chnagethe cron schjedule. An option in the settings menu to globally disable the maikl would be nice indeed!
There is a double-quote (") outside the <script> tags in file /lib/reminder/view_hook.rb (line 8)
Hi,
if I change into my redmine directory and call:
bundle exec rake redmine:reminder_plugin:send_notifications RAILS_ENV=production
then the email is sent correctly.
But when using the cronjob it does not work.
0 5 * * * RedmineUser cd /var/.../redmine/redmine; rake redmine:redminder_plugin:send_notifications RAILS_ENV="production" &> /tmp/redmine_due_date_reminder.log
Any idea what we can try to find out the problem cause?
redmineApp--> .......redmine-3.0.1/plugins/due_date_reminder$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
(in /opt/redmine/redmine-3.0.1)
rake aborted!
NoMethodError: undefined method `active_record' for #Rails::Application::Configuration:0x000000024ce238
[rake --prereqs] rake aborted!
due_date_reminder plugin requires one the following Redmine versions: 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9 but current is 2.2.0.devel
How to disable notification for users in the default settings in plugin settings? Empty field ?
On moving the due_date_reminder_1.4.x plugin to plugin directory, thin_redmine and thin_redmine2 server stopped even after restarting all the servers. Also on migrating the plugin, error message: rake aborted! Expected C:Bitnami/.../htdocs/apps/models/User.rb to define user Tasks: Top => db:migrate_plugins => environment.
Need help!!! Thanks in Advance
Hi!
I installed your plugin and created an issue which is assigned to my user.
But even when the due date is within the specified days I don't receive any e-mail.
What am I doing wrong?
Is there a way to find out where the problem is located?
Thanks in advance!
Having problems using this plugin redmine-2.0 branch on my setup:
Redmine version 2.0.3.stable.10070
Ruby version 1.8.7 (i486-linux)
Rails version 3.2.6
due_date_reminder 0.3.1
My default locale is russian
In the profile I see this string "translation missing: en.field_reminder_notification"
When saving settings in my profile I get "Internal error".
In apache logs:
ActiveRecord::UnknownAttributeError (unknown attribute: reminder_notification):
lib/redmine/safe_attributes.rb:80:in safe_attributes=' app/controllers/my_controller.rb:54:in
account'
File with translation is sent via email by Rafal Przedaszek
Please add the Tickets I'm observing to the mail.
Hi there,
I'm running Redmine 2.5.3 and the user's reminder_notification setting is not being saved. No error in the logs... thoughts?
Reminder settings available only if user edit his profile.
If administrator enter user`s profile - reminder settings are unavailable. It could be nice for administrator to be able to see those settings
i`m using the reminder for redmine 2.0.x
Hi,
i installed the plugin in a redmine 1.4.x version. After the installation im getting an internal server error
wher adding/searching a watcher or search an user in Administration->User.
NoMethodError (undefined method `call' for nil:NilClass): app/controllers/users_controller.rb:44:in `index' /usr/src/passenger-3.0.13/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' /usr/src/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' /usr/src/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' /usr/src/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/utils.rb:479:in `safe_fork' /usr/src/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:357:in `__send__' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:180:in `start' /usr/src/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' /usr/src/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' /usr/src/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /usr/src/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:357:in `__send__' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' /usr/src/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' /usr/src/passenger-3.0.13/helper-scripts/passenger-spawn-server:99 Rendering /usr/share/redmine-1.4.0/public/500.html (500 Internal Server Error)
Could you fix it?
NokSuKao
I have running redmine 2.1.3 (latest stable). I follow install instructions for the plugin. When I executed bundle exec rake redmine:plugins:migrate RAILS_ENV=production, it first give me an error about missing simplecov gem, but after I issue bundle install, next execute of bundle exec rake redmine:plugins:migrate RAILS_ENV=production gives a following error:
(in /usr/local/share/redmine-2.1) rake aborted! undefined method
active_record' for #Rails::Application::Configuration:0x00000002b7ae10
/var/lib/gems/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configuration.rb:85:in method_missing' (See full trace by running task with --trace)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.