Redmine Timesheet plugin

Redmine timesheet plugin

I’m happy to announce I am releasing my first Redmine plugin, Redmine Timesheet. I’m releasing it under the GNU GPL v2

Purpose

This is a plugin to show timelogs across all projects in a Redmine install. I use it for:

  • How long did I work today? (timelogs for today)
  • How much of my time is billable work? (timelogs for specific activities)
  • How much do I need to invoice for a project? (timelogs for a billable activity on a project)
Features
  • Filtering of timelogs
    • by Date ranges
    • by Project
    • by Activities
  • “Run Timesheet” permission to restrict feature to specific users
Install
  1. Download the archive file and extract it to your vendor/plugins folder. You can also download directly from my Subversion server using Rails’s plungin script
      script/plugin install svn://dev.littlestreamsoftware.com/redmine_timesheet_plugin/trunk
    
  2. Follow the Redmine plugin installation steps.
  3. Login to your Redmine install as an Administrator.
  4. Enable the “Run Timesheet” permissions for your Roles.
  5. Add the “Timesheet module” to the enabled modules for your project.
  6. The link to the plugin should appear on that project’s navigation.
Help

If you need help you can leave a comment here or enter an issue directly into my bug tracker.

Eric

32 comments

  1. User Unknown says:

    Thanks for this great plugin!

    Hope to see filter by user soon ;)

    Summ of spent hours for each project would be nice feature ;)

    I’ve translated it to russian and czech. And I can send it to you, if you wish.

  2. Rocco Stanzione says:

    Does this maybe require Rails 2.0 or something else I don’t have? I get this error after following the installation instructions:

    A copy of ApplicationController has been removed from the module tree but is still active!

  3. Rupak Ganguly says:

    nice plugin. good to see you work your way. keep writing those business articles. I darw a lot of motivation from those.

  4. edavis10 says:

    Unknown: Filtering by users will be added soon. Showing the totals per project is a great idea. I would love some translations, I’ll send you an email.

    Rocco: I am running it under Rails 2.0 and the latest Engines. There is a ticket for this error on the “Rails tracker”:http://dev.rubyonrails.org/ticket/6001. Basically @unloadable@ needs to be added to every plugin Controller. Do you have any other plugins loaded?

    Rupak: I can’t tell you how happy that makes me feel. I’ve heard from at least 5 other people now that my articles are motivating them.

  5. max says:

    Hi

    I’ve some problems with plugin installation.

    I’ve installed the two plugins, i can see them in the configuration and administration. But when i try to achieve those pages, an error occurs and show me the the pages can not be found

    Please could you help me ??

  6. Bevan says:

    I’m getting a similar problem.
    Everything installed and configured ok, but I’m getting a 404 error when trying to access the Timesheets tab.

    Had a look in the log file and it’s giving a routing error.
    bq. ActionController::RoutingError (No route matches “/timesheet/index/sys” with {:method=>:get}):

  7. Bevan says:

    If I had read all of the article here (http://rails-engines.org/news/2007/12/11/engines-2-0-ish/), I would have known that you need to add the following line to environment.rb, just after the require of Rails’ boot file.

    bq. require File.join(File.dirname(__FILE__), ‘../vendor/plugins/engines/boot’)

    Eric, can you please add a note to your instructions or those on the Redmine site??

  8. Yudi Soesanto says:

    Hi,

    I installed the timesheet plugins and I got an error when I tried to configure the timesheet from administration-> information in redmine. Here is the error I got when wanted to configure Timesheet “Couldn’t find template file for ../../vendor/plugins/timesheet_plugin/app/views/settings/_settings in [“/Users/macbook/Desktop/work/redmine/app/views”]”

    I use,
    – Rails version 2.0.2
    – Redmine 0.7.devel
    – Timesheet 0.2
    I installed the plugin from this source “svn://dev.littlestreamsoftware.com/redmine_timesheet_plugin/trunk”

    Do I need an engine plugin? However, when I install the engine plugin for rails 2.0.2 from this source “http://svn.rails-engines.org/engines/trunk/”, I got the error too.

    If you need more information, please let me know.

    Please help!!!

    Thanks,
    Yudi

  9. Muthuraj Muthiah says:

    I am using Rails 2.0.2, Redmine 0.7.0. I installed timesheet plugin & configured to each project as per the documentation. But when I selected the timesheet tab from the project page, I got 404 error and the stack trace at the production logs shows as follows:

    powertracker-> is the identifier for my project.

    ActionController::RoutingError (No route matches “/timesheet/index/powertracker” with {:method=>:get}):
    /vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in `recognize_path’
    /vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in `recognize’
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request’
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch’
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi’
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch’
    /vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch’
    /vendor/rails/railties/lib/webrick_server.rb:78:in `service’
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread’
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start’
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start’
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each’
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start’
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start’
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start’
    /vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch’
    /vendor/rails/railties/lib/commands/servers/webrick.rb:66
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require’
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in’
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require’
    /vendor/rails/railties/lib/commands/server.rb:39
    /script/server:3:in `require’
    /script/server:3

    Rendering /home/redmine/redmine-0.7.0/public/404.html (404 Not Found)

  10. Gleb says:

    Sorry for this.Problem was that I downloaded engine as described on Redmine paged. And it was placed in vendor/plugins/rel_2.0.0/ folder not in vendor/plugins/engines.

  11. Desiree says:

    Love the site!! The plug in was exactly what I was looking for!!

    Worked great. Thanks!!

    Keep up the great work!

    -Desi

  12. grep says:

    Is it possible to get timelogs for ALL the projects (not for selected project only)? If yes – please tell me where.

  13. edavis10 says:

    @grep: Yes, just unselect any projects. The plugin will select all of the projects, activities, and users if none are selected.

    @grep2: There is a ‘group by user’ option in the latest version.

  14. Guna says:

    Hi Eric,

    I just downloaded the timesheet plugin and installed by
    1. Copying the timesheet directory into $REDMINE/vendor/plugin
    2. Ran RAILS_ENV=production rake db:migrate:plugins from the redmine root ($REDMINE)
    3. Restarted redmine

    Now I can see a timesheet link on the top left (next to Home and Projects) even before logging in. If I log on as administrator and go to Administration->Plugins, I can see the Timesheet plugin. If I go to Administration->Roles and permissions and choose a role, I can only see a ‘See project timesheets’ option; not a ‘Run Timesheet’ option as you have mentioned. If I go to ->Settings->Modules, the Timesheet module is not listed there. Can you please help me getting this enabled.

    I have not done any Ruby at all.

    Software configurations 
    1. Centos5.5
    2. ruby 1.8.7
    3. gem 1.3.6
    4. Redmine 1.2.0
    5. Timesheet 0.6.0

    Please let me know if you need more information in this regard.

    Thanks

Comments are closed.