andreyserdjuk / redmine-lazy-track

Track long-living Redmine Issues for lazy developers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Track long-living Redmine Issues for lazy developers.
If you have to track same Issue every day, this solution will save your time.

Install

Get your API KEY:

Enter redmine page -> my account -> API access key (on the right sidebar).

Setup environment variables:
composer install
export REDMINE_API_ACCESS_KEY='redmine-api-key'
export REDMINE_URL='https://myredmine.com'

You can add upper vars in .basrc, .bash_profile or .profile etc depends on what your console terminal is loading.

Track

php bin/console.php redmine:track \
-user 111 \                    # user with id 111  
-issue 222 \                   # issue with id 222
-s 2020-01-12 \                # start tracking from date (not inclusively)
-e 2020-01-17 \                # end tracking to date
-message 'hardworking week' \  # message text
-hours 8 \                     # 8 hours per day
-activity 9                    # activity with id 9 (Development in the most of cases) 

Or simply copy-paste:

php bin/console.php redmine:track -u 256 -i 222 -s 2020-01-12 -e 2020-01-17 -m 'hardworking week' -ho 8 -a 9

This will track all working days in the week up to today starting from the last active date.

About

Track long-living Redmine Issues for lazy developers.


Languages

Language:PHP 100.0%