Project

General

Profile

Plugins Directory » Red Counter

Author: Andrea Valle
Website: https://github.com/andreav/red_counter
Code repository: https://github.com/andreav/red_counter
Registered on: 2020-11-15 (over 3 years ago)
Current version: 0.1
Compatible with: Redmine 4.1.x
User ratings:   (1)

Red Counter plugin

Red Counter is a Redmine plugin for setting up issue-related counters.

Counters may be:

  • Time spent in a particular state (summing time from different states is also supported)
  • Counting occurrences of a state (e.g. how many times the issue has been reopened)

Time spent counters are evaluated according to working hours.
Users can configure working hours according to their own needs.

Configuring Working Hours

Time-spent counters are evaluated according to working days and working hours.

Working days are configured directly from Redmine Administration -> Settings -> Issue Tracking -> "Non-working days".

Working hours are configured from plugin configuration page (Administration -> Plugins -> Red Counter -> Configure).

User must specify a Timezone and up to two working hours periods.

Default working hours periods are: 8:30-12:30 and 13:30-17:30.

Everything occurring outside working hours is ignored.

If users need all day counters, he/she can simply configure period-1 from 00:00 to 24:00 and remove period-2.

Configuration example

In the following example we configure 3 counters:

  • One counter measures how long a ticket stays in the "New" state
  • One counter sums up how long a ticket stays in the "In Progress", "Reopend" and "In Progress Outsourced" states
  • One counter counts how many times a ticket has been Reopened

On the issue page, the result is the following:

Triggering counters evaluation

Counter evaluation can be triggered in these ways:

  • From plugin configuration page.
    A job is queued for processing counters evaluation
  • From counters configuration page.
    A job is queued for processing counters evaluation
  • By running a rake task (manually on in a cron)
RAILS_ENV=production bundle exec rake red_counter:eval_time_spent

Installation notes

To install it, follow steps for standard Redmine plugin here.

Clone it into the plugins-directory. Execute

git clone https://github.com/andreav/red_counter.git red_counter

in your plugins directory.

database migration:

cd ..
rake redmine:plugins:migrate

reload web service

touch tmp/restart.txt

Changelog

0.1 (2020-11-15)

Compatible with Redmine 4.1.x.

User ratings

  by Vlad Pol over 3 years ago

Hi! A good plugin for SLA, but it doesn't work properly. Counters freezes. It should be auto-updating.