Skip to content

IceskYsl/worklogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worklogs

This is a worklogs plugin for Redmine.

Requirements

Ruby interpreter: 1.9.2, 1.9.3, 2.0.0
Redmine: 2.3.x

Installation

To install the plugin, execute the following commands from the root of your Redmine directory:

cd plugins
git clone https://github.com/IceskYsl/worklogs.git

and then execute the following commands from the root of your Redmine directory:

$ RAILS_ENV=production rake redmine:plugins:migrate

More information on installing Redmine plugins can be found at redmine.org.

After the plugin is installed you will need to restart Redmine for the plugin to be available.

Task

by rake

#day report
RAILS_ENV=production bundle exec rake worklogs:day day=2013-08-01

#week report
RAILS_ENV=production bundle exec rake worklogs:week week=23

Add the task into crontable

[root@smbserver ~]# crontab -l
02 23 * * 1-5 /bin/bash -l -c  /shell/day.sh 
30 14 * * 0 /bin/bash -l -c  /shell/week.sh
[root@smbserver ~]# cat /shell/week.sh
#!/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/ruby/bin
cd /opt/www/redmine/current
RAILS_ENV=production bundle exec rake worklogs:week

[root@smbserver ~]# cat /shell/day.sh 
#!/bin/bash
#source /usr/local/rvm/scripts/rvm
cd /opt/www/redmine/current
RAILS_ENV=production bundle exec rake worklogs:day

Uninstallation

To remove the plugin, from the root of your installation directory do the following:

rake redmine:plugins:migrate NAME=worklogs VERSION=0 RAILS_ENV=production
rm -rf plugins/worklogs
bundle install

Demo

Configure Configure

Configure

demo pic

More Plugins(for Redmine)

Holidays A holidays plugin for Redmine. (https://github.com/IceskYsl/holidays)

address_books A address book plugin for Redmine. (https://github.com/IceskYsl/address_books)

Worklogs A worklogs plugin for Redmine. (https://github.com/IceskYsl/worklogs)

Donate

[donate via paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=iceskysl%40gmail%2ecom&lc=US&item_name=Donate Iceskysl &amount=0%2e99&currency_code=USD&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest "donate via paypal")

About

This is a worklogs plugin for Redmine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •