项目

一般

简介

插件 » Redmine Whining Redmine任务未按时更新时自动发邮件提醒指派人

Redmine Whining

该插件可以根据预制的提醒周期扫描问题/issues,当问题的指派人超过预期的时间未更新问题时,redmine会自动发送提醒邮件给问题的指派人

发布于: https://github.com/chantra/redmine_whining
兼容于: Redmine 5.0.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*

最新版本: 0.0.4_ 更新日期: 2023-02-04 12:09

评论

添加评论

hu liu4 天 之前添加

@guo hongxing 执行下面命令后有日志或者任何提示吗?我现在遇到的问题是执行了以后没收到邮件,也没有任何提示
插件已经应用,邮箱也配置好了(能收到测试邮件),项目中也应用了whining
rake redmine:send_whining days=7 RAILS_ENV=“production”

redmineplugins.cn Admin3 天 之前添加

@hu liu @guo hongxing 重新适配了redmine 3.3的版本,发插件安装包redmine_whining-0.0.4_0.zip给你了。我这边测试可以收到提醒邮件

hu liu4 天 之前添加

还是收到了,就是这里说的问题还存在:https://www.redmineplugins.cn/issues/363

redmineplugins.cn Admin一天 之前添加

@hu liu 另外在Redmine5下测试redmine_whining 0.0.4_1也没问题,启用whining的项目才可以收到过期邮件提醒。以下是我的测试环境:

Environment:
  Redmine version                5.0.3.stable.21953
  Ruby version                   2.7.3-p183 (2021-04-05) [arm64-darwin21]
  Rails version                  6.1.7
  Environment                    development
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Redminex_theme
SCM:
  Subversion                     1.14.1
  Git                            2.37.1
  Filesystem                     
Redmine plugins:
  redmine_ckeditor               1.2.3
  redmine_ckeditor_extension     0.2.0
  redmine_issue_autoflow         2.8.1
  redmine_ldap_sync              2.3.1
  redmine_whining                0.0.4_1

hu liu29 分钟 之前添加

我本地后来调好了,貌似是在whinings方法里面的where(s.first,*params)没把projects和tracker信息带进去,导致所有项目的所有tracker都会收到邮件

guo hongxing大约 2 个月 之前添加

@hu liu 测试过,不支持 redmine 3.3及以前的版本

hu liu大约 2 个月 之前添加

redmine3.3版本能不能用啊

guo hongxing大约 2 个月 之前添加

@hao ni 不能。和安装方式没有关系。邮件提醒相关的功能都要先配置好Redmine发邮件的功能。

hao ni2 个月 之前添加

用Redmine packaged by Bitnami Manager Tool安装的Redmine没有配置过邮件能用吗?

redmineplugins.cn Admin4 个月 之前添加

另外,rake指令中的 days=7 与插件配置中的天数设置哪个为准呢?

备忘 咨询 #363

Xu Gary Xu4 个月 之前添加

插件安装成功后,设置插件只对某些项目的某几个跟踪标签发送提示邮件。然后手动运行下面指令
rake redmine:send_whining days=7 RAILS_ENV=“production”

发现收到的邮件是对所有项目、所有跟踪标签的提示。这个是为什么?我漏了什么配置或者下发的指令不对吗?

另外,rake指令中的 days=7 与插件配置中的天数设置哪个为准呢?

nengsheng jiang5 个月 之前添加

5.0 windows可以使用

nengsheng jiang5 个月 之前添加

D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/callbacks.rb:25:in `on_file_autoloaded’: expected file D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/plugins/custom_users_as_assignees/lib/custom_users_as_assignees/craftmine_helper.rb to define constant CustomUsersAsAssignees::CraftmineHelper, but didn’t (Zeitwerk::NameError)
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:28:in `require’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `const_get’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `cget’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:in `block (2 levels) in eager_load’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in `block in ls’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `each_child’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `ls’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in `block in eager_load’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `synchronize’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `eager_load’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `each’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `eager_load_all’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/application/finisher.rb:133:in `block in <module:Finisher>'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/initializable.rb:32:in `instance_exec’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/initializable.rb:32:in `run’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/initializable.rb:61:in `block in run_initializers’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:347:in `call’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each’
from D:/software/Bitnami/redmine-5.0.0-1/ruby/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/initializable.rb:60:in `run_initializers’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.7/lib/rails/application.rb:391:in `initialize!'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/config.ru:3:in `require’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/config.ru:3:in `block in <main>'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/config.ru:1:in `new’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/config.ru:1:in `<main>'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/rack/adapter/loader.rb:33:in `eval’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/rack/adapter/loader.rb:33:in `load’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/rack/adapter/loader.rb:42:in `for’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/controllers/controller.rb:170:in `load_adapter’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/controllers/controller.rb:74:in `start’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:203:in `run_command’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:159:in `run!'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/bin/thin:6:in `<top (required)>'
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/bin/thin.cmd:30:in `load’
from D:/software/Bitnami/redmine-5.0.0-1/apps/redmine/htdocs/bin/thin.cmd:30:in `<main>

张 Chen9 个月 之前添加

有没有大佬在线教下如何使用这个插件,可以酌情有偿

dou zi9 个月 之前添加

已经OK了 非常感谢

redmineplugins.cn Admin9 个月 之前添加

看这里的 windows计划任务创建方法 ,周期根据自己的业务需求设定,可以是间隔15分钟,也可以是每天早上6:30等等

dou zi9 个月 之前添加

麻烦告知计划任务的执行内容怎么配置呢?运行周期是每天一次吗?谢谢解答

redmineplugins.cn Admin9 个月 之前添加

是的,需要在windows里创建计划任务,定期执行才可以。 @dou zi

dou zi9 个月 之前添加

收到,非常感谢,您发的这个版本可以打开。
另,还需要创建windows计划任务来调用吗?还是直接配置即可使用?

redmineplugins.cn Admin9 个月 之前添加

@dou zi 邮件发你一个redmine5上测试通过的版本,你试试看

dou zi9 个月 之前添加

请问windows下怎么使用此插件,我将插件copy至plugin目录后,重启redmine,点击配置后出现以下显示(我的redmine是5.0版本)
<%= content_tag(:label, l(:trackers)) > < selected_trackers = Setting.plugin_redmine_whining[:trackers] ? Setting.plugin_redmine_whining[:trackers].collect { |x| Integer(x)} : [] %> <%= select_tag(“settings[trackers]”, options_from_collection_for_select(Tracker.all, :id, :name, selected_trackers), :multiple ⇒ true) %>

<%= l(:whining_whine_when) >
<
IssuePriority.find(:all, :order ⇒ “position").each do |prio| >
<%= content_tag(:label, prio.name) %> <
sym = “delay_#{prio.id}".intern val = Setting.plugin_redmine_whining[sym] ? Setting.plugin_redmine_whining[sym] : Setting.plugin_redmine_whining[:delay_default] %> <%= text_field_tag(“settings[delay_#{prio.id}]”, val) %> <%= l(:days) %>

<% end %>
<%= content_tag(:label, l(:default)) %> <%= text_field_tag(“settings[delay_default]”, Setting.plugin_redmine_whining[:delay_default]) %> <%= l(:days) %>

redmineplugins.cn Admin10 个月 之前添加

为啥装了插件后,就装的那天收到了超时提醒邮件,后面就没收到了,有啥可能的原因呢?

可能安装那天是你手动执行的rake task,所以收到邮件了。后期要把这个rake task放到计划任务里定制扫描执行才行。例如:linux的crontab。

由 匿名用户 在 10 个月 之前添加

为啥装了插件后,就装的那天收到了超时提醒邮件,后面就没收到了,有啥可能的原因呢?

redmineplugins.cn Admin11 个月 之前添加

@chen xin @Chen Snowman 在redmine 4.2上可以正常运行。下面是测试环境和点配置后的显示。你说的“点配置无法正常显示”是什么现象?

Environment:
  Redmine version                4.2.4.stable.21431
  Ruby version                   2.6.6-p146 (2020-03-31) [x86_64-darwin20]
  Rails version                  5.2.6.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

chen xin11 个月 之前添加

redmine 4.2加载这个插件后,点配置无法正常显示。可以修复这个功能吗?

<%= content_tag(:label, l(:trackers)) %> <% selected_trackers = Setting.plugin_redmine_whining[:trackers] ? Setting.plugin_redmine_whining[:trackers].collect { |x| Integer(x)} : [] %> <%= select_tag("settings[trackers]", options_from_collection_for_select(Tracker.all, :id, :name, selected_trackers), :multiple => true) %>

<%= l(:whining_whine_when) %>
<% IssuePriority.find(:all, :order => "position").each do |prio| %>
<%= content_tag(:label, prio.name) %> <% sym = "delay_#{prio.id}".intern val = Setting.plugin_redmine_whining[sym] ? Setting.plugin_redmine_whining[sym] : Setting.plugin_redmine_whining[:delay_default] %> <%= text_field_tag("settings[delay_#{prio.id}]", val) %> <%= l(:days) %>

<% end %>
<%= content_tag(:label, l(:default)) %> <%= text_field_tag("settings[delay_default]", Setting.plugin_redmine_whining[:delay_default]) %> <%= l(:days) %>

伊 angela超过一年 之前添加

扫描就显示要付款了

guo hongxing超过一年 之前添加

@伊 angela 下载不显示二维码吗? 扫描二维码就可以了

伊 angela超过一年 之前添加

没有积分啊,需要付款

guo hongxing超过一年 之前添加

@伊 angela 点击本地下载链接,支付宝扫描下载二维码即可

伊 angela超过一年 之前添加

怎么样可以有积分下载这个插件

Chen Snowman超过 2 年 之前添加

很简单,网上也有现场的。随便baidu一个给你: https://jingyan.baidu.com/article/154b463130041128ca8f41c7.html

由 匿名用户 在 超过 2 年 之前添加

请问在Windows服务器下如何新建计划任务?