Redmine Timesheet plugin

written by edavis on January 9th, 2008 @ 09:17 PM

Screenshot

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

Comments

  • User Unknown on January 10, 2008 @ 03:52 AM

    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.

  • Rocco Stanzione on January 10, 2008 @ 07:24 AM

    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!

  • Rupak Ganguly on January 10, 2008 @ 08:24 AM

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

  • Eric Davis on January 10, 2008 @ 09:13 AM

    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. 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.

  • max on January 18, 2008 @ 01:32 AM

    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 ??

  • Eric Davis on January 18, 2008 @ 08:40 AM

    Max: What error are you are getting? You can email me: edavis at littlestreamsoftware dot com or reply here.

  • Bevan on January 20, 2008 @ 05:39 AM

    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.

    ActionController::RoutingError (No route matches ”/timesheet/index/sys” with {:method=>:get}):

  • Eric on January 20, 2008 @ 08:11 PM

    Bevan:

    What version of Rails and Engines are you using?

  • Bevan on January 20, 2008 @ 11:07 PM

    Redmine version: 0.6.devel.1069 Rails version: 2.0.2 Engines version: trunk (668 I think)

  • Eric on January 21, 2008 @ 01:06 PM

    Beven:

    I opened a new issue for this, can you add the full backtrace from your log file to the issue?

    https://projects.littlestreamsoftware.com/issues/show/549

  • Bevan on January 22, 2008 @ 11:50 AM

    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.

    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??

  • Yudi Soesanto on April 25, 2008 @ 12:39 AM

    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

  • Muthuraj Muthiah on June 23, 2008 @ 04:35 AM

    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)

  • Gleb on June 25, 2008 @ 12:09 AM

    The same problem and the same log. But Redmine version is 0.7.1.

  • Gleb on June 25, 2008 @ 01:04 AM

    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.

  • Eric Davis on June 25, 2008 @ 03:39 PM

    Muthuraj Muthiah and Gleb: These issues are from not having Rails Engines installed properly. It looks like it will be included in the next release

Post a comment