myslak71 / dmt

deliver_my_time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dmt

Build Status Coverage Status Requirements Status


Log time from Toggl to Jira tasks smoothly.

Installing

pip install https://github.com/kedod/dmt/archive/master.zip

Example

from dmt.deliver_my_time import Dmt
dmt = Dmt('toggl_token', 'https://jira_url.example', 'jira_user', 'jira_pass')
dmt.log_time_to_jira(days=30, pattern=r'TASK-\d+', comment=' time logged by dmt; toggle entry {}')

Code listed above will find every toggl entry, which match regex pattern, for the last 30 days. Then log every entry with description to corresponding Jira ticket (e.g https://jira_url.example/TASK-1) and mark toggl entry as 'logged' to prevent logging that entry in the future.

Auto log

You can use crontab for Linux or Task Scheduler for Windows to run python script with every computer boot or other scheduled time.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

deliver_my_time

License:MIT License


Languages

Language:Python 100.0%