Giter Club home page Giter Club logo

redmine_issue_reminder's Introduction

Redmine Issue Reminders Plugin Build Status

This plugin supplies several rake tasks for sending out email reminders listing inactive issues, due / overdue issues, and for automatically closing issues that have been marked 'resolved' a number of days ago and not seen any activity since.

The email functionality has to be activated per project (Settings / Modules). The closing of old resolved issues acts globally on all projects. Before using the plugin for the first time you have to set the issue statuses to consider as 'resolved' and 'closed' in the global plugin settings (Administration / Plugins).

Other configuration options are the number of days without activity after which to consider an issue inactive (defaults to 90), and the number of days after which to close resolved issues (defaults to 120).

inactive issue reminder

rake redmine:send_issue_reminders

This task will send out one email to every user, listing all inactive issues assigned to that user. In addition, if the user has the permission Receive inactive issue reminders (for the whole project) in a given project, also inactive issues not assigned to that user will be added to the list. Users not having any inactive issues wont receive an email of course. The idea is to run this task once a week, i.e. on sunday or monday morning in order to remind every user of his inactive issues, and to give project managers (via the permission mentioned above) an overview of inactive issues for their projects, regardless of who's the assignee.

due issues reminder

rake redmine:send_due_issues

Sends out one email to users, reminding them of their unresolved issues with a due date on or before (today + 7 days). So if this is run every week on monday morning, every user will receive a list of issues that are due this week or on next monday. The permission Receive due and overdue issue reminders (only if assignee) determines wether a user will receive such notifications or not.

Unresolved issues here are defined as 'not open' and not having the resolved but open issue state as explained below. You might want to customize that in lib/issue_reminders.rb.

close old resolved issues

rake redmine:close_old_resolved_issues

In our setup, we have a 'resolved' issue state which is not 'closed' in the redmine sense. This is because in our workflow, an issue is considered open until the customer (or whoever is the product owner) actively sets the resolved issue to 'closed'. Sometimes however people forget about this or feel too busy/lazy to do so. This rake task will clean up such old resolved issues by auto-closing them. By doing so the regular redmine email notifications will be sent out, reminding everybody concerned with the issue one last time. Run this via cron i.e. once a week. Be aware of the fact that if you have a lot of old resolved but not closed issues, the first run might take a while, sending out a lot of emails.

Supported Redmine versions

Current master should run on any Redmine 2.x. See the redmine-1.x tag for a version that runs on Redmine 1.2 - 1.4.

Bug reports and reports of success and failure with other versions of Redmine are welcome of course.

License

Copyright (C) 2012-2015 Jens Krämer

The Issue Reminders plugin for Redmine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Issue Reminders plugin for Redmine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the plugin. If not, see www.gnu.org/licenses.

redmine_issue_reminder's People

Contributors

jkraemer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redmine_issue_reminder's Issues

rake doesn't run on 2.5

rake won't run.

my database doesn't have a number 1 before it.

rake aborted!
Access denied for user 'xxxx'@'localhost' to database '1xxxx'

Translation for portuguese Brazil

I used the following, would you like to aggregate it to trunk:

issue_reminder:
settings:
remind_after_days: Considerar tarefas inativas após (dias)
close_issues_after_days: Encerrar tarefas resolvidas há mais de (dias)
resolved_state_id: 'Estado de tarefas resolvidas'
closed_state_id: 'Estado de tarefas encerradas'

project_module_issue_reminder: Lembretes de tarefas
permission_receive_issue_reminders: "Receber lembretes de tarefas inativas (de todo o projeto)"
permission_receive_due_issues: "Receber lembretes de prazos de tarefas (somente se atribuído)"

mail_subject_issue_reminder:
one: "Uma tarefa precisa da sua atenção"
other: "%{count} tarefas precisam da sua atenção"
mail_body_issue_reminder: "As tarefas seguintes não tiveram atualização nos últimos %{age} dias"
mail_body_issue_reminder_assigned_to: " atribuída a %{name}"
mail_body_issue_reminder_inactive_since: " inativa desde %{date}"
mail_subject_due_issues:
one: "Uma tarefa terá prazo encerrado na semana que vem."
other: "%{count} tarefas terão seu prazo encerrado na semana que vem."
mail_body_due_issues: "As tarefas seguintes estão com prazo vencendo em %{date} ou antes"
mail_body_issue_reminder_due_date: " prazo até %{date}"

Error on v2.6.1

I tried running it on Redmine v2.6.1 and it gave me below error:

** Invoke redmine:send_issue_reminders (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Mysql::Error: Access denied for user 'root'@'localhost' (using password: NO)

Redmine is working fine though.

Any clue what is it?

close issue dont work

Hello
First excellent plugin and thanks for sharing
can you tell me how to operate the automatic closure of the incidents
schedule it in the configuration of the plug and never has closed not if I have to do something else
Cheers

Plugin sent all issues to all users

This issue has occurred after upgrade redmine from 2.6 to 3.1. This situation causing the issue security problems.

Thanks for this work. Regards.

Environment:
Redmine version 3.1.1.stable.14622
Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux]
Rails version 4.2.4
Environment production
Database adapter Mysql2

Mail not send with async_smtp settings in configuration.yml

i've add Mailer.with_synched_deliveries before .deliver method in lib/issue_reminder.rb

module IssueReminder
def self.deliver_issue_reminders
inactive_issues.each_pair do |user, issues_by_project|
Mailer.with_synched_deliveries do
Mailer.issue_reminder(user, issues_by_project).deliver
end
end
end

def self.deliver_due_issues
due_issues.each_pair do |user, issues_by_project|
Mailer.with_synched_deliveries do
Mailer.due_issues(user, issues_by_project).deliver
end
end
end

Environment:
Redmine version 2.6.1.stable.14016
Ruby version 2.0.0-p247 (2013-06-27) [x86_64-linux]
Rails version 3.2.21
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Mercurial 2.7.1
Git 1.7.1
Filesystem
Redmine plugins:
redmine_issue_reminder 0.1.0

undefined method `id' for nil:NilClass

I'm having problems with running redmine:send_due_issues task.

When I run it I get error:

** Invoke redmine:send_due_issues (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_due_issues
rake aborted!
undefined method `id' for nil:NilClass
/opt/redmine-2.5.2/plugins/redmine_issue_reminder/lib/issue_reminder.rb:48:in `block in due_issues'
/opt/redmine-2.5.2/plugins/redmine_issue_reminder/lib/issue_reminder.rb:41:in `tap'
/opt/redmine-2.5.2/plugins/redmine_issue_reminder/lib/issue_reminder.rb:41:in `due_issues'
/opt/redmine-2.5.2/plugins/redmine_issue_reminder/lib/issue_reminder.rb:11:in `deliver_due_issues'
/opt/redmine-2.5.2/plugins/redmine_issue_reminder/lib/tasks/issue_reminder.rake:20:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175: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.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => redmine:send_due_issues

Thank you.

Compatibility with Redmine 2.x

Installation of this plugin on Redmine 2.0.4 results in a failure to load file "dispatcher." I believe this is common among plugins that support Redmine 1.4. Any possibility of an update or branch that supports Redmine 2.x. We really need this functionality and there is currently no plugin that supports Redmine 2.x to deliver it.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.