Skip to content

Small script to automatically add Toggl worklogs to Jira Tempo via REST API

License

Notifications You must be signed in to change notification settings

giovannicimolin/toggl-tempo-worklog-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggl to Jira timelog transfer

This is a little script that helps add Toggl timelogs to Jira. My workflow is this: I use the description field as normally and add the ticket number on the tags (because they are easy to add). Additionaly, I add a DD or FF flag to signal when work was done for those roles, but I'm not using that yet.

How to use

  1. Create a venv and install requirements with
pip install -r requirements.txt
  1. Set up a .env file with these variables:
TOGGL_TOKEN=

JIRA_URL=
JIRA_USER=
JIRA_PASSWORD=

You'll need to get your Toggl API token from the account settings. Add JIRA_URL without a trailing slash.

  1. Change this line on sync_timelogs.py to set the number of days you want to sync:
timelogs = toggl_driver.get_timelogs_last_n_days(1)
  1. Run it:
python sync_timelogs.py

Warning

This is still on early work, so if it hits any error, it'll probably stop. Make sure you check you timelogs for the correct format before syncing.

Contributors

Thanks for everyone who contributed with this and helped make it better!

  • @viadanna
  • @xitij2000
  • @nizarmah
  • @Agrendalath
  • @0x29a

About

Small script to automatically add Toggl worklogs to Jira Tempo via REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages