This dandy Redmine plugin imports time entries from Toggl to Redmine using REST API service calls for both Toggl and Redmine.
Additionally, the plugin groups similar Toggl time entries into a single Redmine entry. So, even if you start and stop your timer for a particular task multiple times on Toggl, at the end of day, when you import the time entries to Redmine, they are grouped by the issue ID and the description, which keeps Redmine clean.
This plugin has been made and tested with love and care. However, the makers of this plugin are in no way responsible for any damages - direct or indirect - caused by the use of this plugin. In short, use it at your own risk.
plugins
directory of Redmine.RAILS_ENV=production bundle exec rake redmine:plugins:migrate
Here's a quick video to get you started.
If a certain topic is not mentioned in the video, you can find more information on it by reading this document.
/my/account
).#1919 Feed the bunny wabbit.
Tracker #1919 Feed the bunny wabbit.
#1919
is the Redmine issue ID.Feed the bunny wabbit
is the comment./toggl2redmine
).
hh:mm
. For example, 1h 30m
can
be written as 1.5
or 1:30
in the input boxes.You can specify a Default activity in the options form. This activity will be pre-populated in your Toggl report, making it easier to import data.
If you use multiple workspaces on Toggl, you can choose the workspace from which you want to import data using the Toggl Workspace field in the options form.
As mentioned before, the Date option allows you to import time entries from past dates.
You can use this option to round your time entries as per your requirements. Let's say, the option to round to the nearest 10 minutes. There are 3 ways in which you can round your time entries.
To disable rounding, you can choose the Don't round option.
Want to fiddle with the code? Or just get a demo of the plugin? If you use Docker, you can do so with ease.
# Replace x.y with a real branch name, e.g. 5.x
git clone --branch x.y git@github.com:jigarius/toggl2redmine.git
cd toggl2redmine
docker compose up
# When Redmine is ready, you'll see a message like:
# INFO WEBrick::HTTPServer#start: pid=X port=3000
# At this point, press Ctrl+C and run the next command.
docker compose start
rake provision
Run rake info
to learn how to access your demo installation!
Thanks to the Docker setup, the plugin code can easily be linted and tested.
rake reset RAILS_ENV=test
: Prepare/reset the test environment.rake lint
: Run Rubocop.rake test
: Run tests.Mailhog has been included in the Docker setup so that you can easily reset your password or test Toggl 2 Redmine with more than one user accounts.