Giter VIP home page Giter VIP logo

redmine_tint_issues's Introduction

redmine_tint_issues

Plugin for Redmine to tint issues by age and due date

Use case(s)

  • color issues in issue index view by age, start date and due date

PNG that represents a quick overview

Install

  1. download plugin and copy plugin folder redmine_tint_issues to Redmine's plugins folder

  2. restart server f.i.

sudo /etc/init.d/apache2 restart

(no migration is necessary)

Uninstall

  1. go to plugins folder, delete plugin folder redmine_tint_issues

rm -r redmine_tint_issues

  1. restart server f.i.

sudo /etc/init.d/apache2 restart

Use

  • Go to Projects-><your project>->Settings->Modules and tick 'Tint Issues'
  • Go to Administration->Plugins->Redmine Tint Issues and select approriate ages for tickets

PNG that represents a quick overview

note: you may leave input fields empty, f.i. if you just want two colors, one for 'old' and one for 'very old'

  • On issue index page you will see issue rows colored by age having left and side colored bars

How is the color determined?

Redmine Tint Issues looks for an issue start date. If it cannot find a start date, because it is empty, then it uses the issue creation date. Redmine Tint Issues wil calculate the age based on today minus the aforementioned dates and color the issue row accordingly.

If the issue has a due date, then Redmine Tint Issues will put a grey, green, orange or red bar on the left and right side of the issue row. If the issue is overdue, the issue will be marked with two black bars.

The style can easily be changed by amending the style sheet in the assets/styleshets folder. Do not edit the styleshet in the public/plugin_assets folder as it will be overridden each time redmine is rebootet.

Have fun!

Localisations

  • 1.0.2
    • English
    • German

Change-Log*

1.3.0

  • supports Redmine 5

1.2.1

  • bug fix: virgin plugin was trying to read plugin settings value, which do not exist

1.2.0

  • support individual color selection for each color code in plugin setup
  • choose to base issue age on creation date or on last update date

1.1.0

  • support for Rails >= 5.0

1.0.2

  • simplified module support
  • cleaned code

1.0.1

  • added module support
  • cleaned code

1.0.0

  • running on Redmine 3.4.6, 3.4.11

redmine_tint_issues's People

Contributors

hugohasenbein avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

redmine_tint_issues's Issues

Due date colors are not showing

Hi all, I'm testing this plugin but I have a problem with due date colors.

As you can view in the picture, after configure due date tints I can't see any color at the sides.

image

somebody could tell me what I'm doing wrong?

Environment:
Redmine version 4.2.0.stable
Ruby version 2.5.0-p0 (2017-12-25) [x86_64-linux]
Rails version 5.2.5
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 2.17.1
Filesystem
Redmine plugins:
redmine_tint_issues 1.2.1

Thanks in advance

Edit: I try to reboot the server but there are no changes.

not work in redmine 5.0 ruby 3.0.3

expected file /home/redmine/5.0/plugins/redmine_tint_issues/lib/redmine_tint_issues/hooks/hooks_views.rb to define constant RedmineTintIssues::Hooks::HooksViews, but didn't (Zeitwerk::NameError)
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/callbacks.rb:25:in `on_file_autoloaded'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:28:in `require'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `const_get'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `cget'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:in `block (2 levels) in eager_load'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in `block in ls'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `each_child'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `ls'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in `block in eager_load'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `synchronize'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `eager_load'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `each'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `eager_load_all'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in `block in <module:Finisher>'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `instance_exec'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `run'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `each'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `call'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in `run_initializers'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-6.1.6/lib/rails/application.rb:391:in `initialize!'
  /home/redmine/5.0/config/environment.rb:16:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3.1/lib/rack/builder.rb:125:in `instance_eval'
  /home/redmine/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3.1/lib/rack/builder.rb:125:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `eval'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:397:in `run_block_and_record_step_progress'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'

current date

its will be nice if u using cuurent date- due date
and periodic task every (hours,days)

Not work with RM 5.0.4

Hello!
Nothing changing with installed plugin.
Try to change to default theme - without success ((

Its ok, just need to activate function in project settings. Sorry for dusturb )
Great work! Thank you!

Issue age base

Greeting Dr. Stephan,
Thank you for providing these fantastic plugins, We do appreciate it. we are having an issue using redmine_tint_issues. When we can [Issue age base] and select [Age by update date] colors are still the same. Are they should be rechanged?. If you can help us We will be much appreciated it.
Thank you again

Best regards
Ashlex team

NoMethodError: undefined method `alias_method_chain'

Hi

I get an error while running the command:

[~/redmine]$ bundle exec rake redmine:plugins:migrate NAME=redmine_tint_issues RAILS_ENV=production
rake aborted!
NoMethodError: undefined method `alias_method_chain' for #<Class:0x00000000051b2038>
Did you mean?  alias_method
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues/patches/issue_patch.rb:31:in `block in included'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues/patches/issue_patch.rb:29:in `class_eval'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues/patches/issue_patch.rb:29:in `included'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues/patches/issue_patch.rb:244:in `include'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues/patches/issue_patch.rb:244:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/lib/redmine_tint_issues.rb:22:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
/mnt/storage/opt/redmine/redmine/plugins/redmine_tint_issues/init.rb:41:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
/mnt/storage/opt/redmine/redmine/lib/redmine/plugin.rb:181:in `block in load'
/mnt/storage/opt/redmine/redmine/lib/redmine/plugin.rb:172:in `each'
/mnt/storage/opt/redmine/redmine/lib/redmine/plugin.rb:172:in `load'
/mnt/storage/opt/redmine/redmine/config/initializers/30-redmine.rb:20:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `load'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `block in load'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `load'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/engine.rb:663:in `block in load_config_initializer'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.1/lib/active_support/notifications.rb:170:in `instrument'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/engine.rb:662:in `load_config_initializer'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/engine.rb:619:in `each'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/engine.rb:619:in `block in <class:Engine>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `instance_exec'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `run'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:50:in `each'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/initializable.rb:60:in `run_initializers'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/application.rb:361:in `initialize!'
/mnt/storage/opt/redmine/redmine/config/environment.rb:16:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/application.rb:337:in `require_environment!'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/railties-5.2.4.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
/mnt/storage/opt/redmine/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
Environment:
  Redmine version                4.1.0.stable
  Ruby version                   2.6.3-p62 (2019-04-16) [x86_64-linux]
  Rails version                  5.2.4.1
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.7.14
  Mercurial                      5.2.2
  Bazaar                         2.5.1
  Git                            2.9.3
  Filesystem                     
  Xitolite                       2.9.3
Redmine plugins:
  additionals                    2.0.23
  progressive_projects_list      4.0.0
  redmine_git_hosting            4.0.1
  redmine_issue_badge            0.1.3
  redmine_tags                   4.0.0

RU locale

Hello! Thank you for plugin.
If you need RU locale, that is:
ru.zip

[Feature] tint based on updated status

Hello, maybe there is possibility to add support, to tint issues based on updated time, not issue creation time ?, for example if some of issues is updated more than 10 days ago it will be marked as yellow.

Editing colors is settings menu also would be very nice!

Thanks for the plugin!

coloring does not work problems, provided that the time specified in hours, not days

Environment:
Redmine version 4.0.5.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 5.2.3
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 2.17.1
Filesystem
Redmine plugins:
a_common_libs 2.5.5
custom_menu 1.8.7
global_roles 2.2.5
luxury_buttons 4.1.4
redmine_agile 1.5.1
redmine_ckeditor 1.2.2
redmine_contacts 4.2.5
redmine_contacts_helpdesk 4.1.2
redmine_issue_favicon 0.0.3
redmine_per_project_formatting 0.1.0
redmine_questions 1.0.1
redmine_sender 1.5.0
redmine_tint_issues 1.2.1
redmine_xls_export 0.2.1.t11
sidebar_hide 0.0.8
unread_issues 2.2.4

Screenshot_20210316_142743
Screenshot_20210316_142830

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.