Plugin helps users to control spent time on issue.
Redmine 3.x
- Go to your Redmine installation's plugins/directory.
git clone https://github.com/efigence/redmine_hamster
- run
bundle install
- Go back to root directory.
rake redmine:plugins:migrate RAILS_ENV=production
- Restart Redmine.
- Admin should define which groups will be allowed to use Hamster plugin.
- User configuration:(Not required)
- Go to /my/account/.
- Set your own configuration like - working hours, start parallel tasks or issue status change after start or stop.
- Go to /hamster
- If you have any issues available, then you can start it.(For parallel start change default configuration in /my/account )
- If you want stop, just click stop.
- Make sure that spent time is ok(If not fix it by clicking on value), choose activity and click raport.
To connect with API you have to make a request with additional header:
X-Redmine-API-Key: users_api_key
(e.g. X-Redmine-API-Key: da6376b020ec96ea00bf86c41e842a40c5a817fe
)
- hamster/index
- method: GET
- params: none
- hamster/my_issues
- method: GET
- params: none
- hamster/mru
- method: GET
- params: none
- hamster/my_active_hamsters
- method: GET
- params: none
- hamster/my_ready_to_report_hamsters
- method: GET
- params: none
- hamster/start
- method: POST
- params:
issue_id: Integer
(Issue ID)
- hamster/stop
- method: POST
- params:
hamster_issue_id: Integer
(Hamster ID)
- hamster/update
- method: PATCH
- params:
id : Integer
(Hamster ID)hamster: { spend_time: Float }
(Hash with new spend_time value)
- hamster/delete
- method: DELETE
- params:
id: Integer
(Hamster ID)
- hamster/report_time
- method: POST
- params:
hamster_id: Integer
- hamster_journals/hamster_journals
- method: GET
- params:
hamster_id: Integer
(Hamster ID)
- hamster_journals/update
- method: PATCH
- params:
id: Integer, to: Date, from: Date
(HamsterJournal ID, End date, Start date) - must haveto
,from
or both.
- hamster_journals/delete
- method: DELETE
- params:
id: Integer
(HamsterJournal ID)
Redmine Hamster plugin. Copyright (C) 2015 Efigence S.A.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.