This is intended to be used every week to compile your time in Jira and Clockify.
Project description
⏰ Timesheet tool
This is intended to be used every week to compile your time in Jira and Clockify.
Authors
Installation
pip install timesheet_tool
Configuration
Start by creating a copy of the environment file like so cp .env.example .env.
You are now ready to configure the program, here is a little explainer for every variable.
TOGGL_TOKEN
This is the token from your Toggl account, retrieve it by going to https://track.toggl.com/profile, scrolling all the way down to API Token.
TICKET_PREFIX
This is the prefix used in your Jira project for the tickets you will be working on. With a ticket format that looks like this: XXX-240, set this variable to XXX.
HOURS_IN_DAY
This is the number of hours you will be working every day. This should be a float.
MEETING_TICKET
This is the ticket number for your ticket that englobes every "meeting" type tasks.
JIRA_EMAIL
The email linked to your Jira account.
JIRA_TOKEN
This is the token from your Jira account, retrieve it by going to https://id.atlassian.com/manage-profile/security/api-tokens. Once there, click on Create API token, name it however you like. Click on Create and set this variable to the resulting token.
JIRA_URL
This is the root url of your Jira project.
CLOCKIFY_API_KEY
This is the API key from your Clockify account, retrieve it by going to https://clockify.me/user/settings.
CLOCKIFY_USER_ID
This is the user id from your Clockify account.
How to use
-
Clone this repo somewhere on your computer.
git clone git@github.com:SamuelPerron/timesheet-tool.git -
Go into the new cloned directory.
cd ./timesheet-tool -
Configure the program by following the steps into the Configuration section.
-
Install the dependencies.
uv sync -
Invoke the script by passing it the start and end date.
python ./app/main.py -s {start_date} -e {end_date} -
The script is gonna parse through your logged time from Toggl and extract time spent working on Jira tickets. It will then output a list of the compiled times. If happy with the result, continue by inputting
y. -
The script will send the computed times to Jira as Jira Worklogs, make sure everything is correct and, if so, input
nto exit the program. If an error as occured or you changed your mind and want to cancel, inputyand all previously created Jira Worklogs will be deleted.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timesheet_tool-0.2.0.tar.gz.
File metadata
- Download URL: timesheet_tool-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77e14385b9ea9043594281b3024c1f6527b0e9bd5ad3ef21ebe7cb2cbc45f8ea
|
|
| MD5 |
bb85d3dac5d6980b997006c15b7ee244
|
|
| BLAKE2b-256 |
a4379d801d80eef790ca19052b03f448babbd75e4e4b076443853800706a3fea
|
File details
Details for the file timesheet_tool-0.2.0-py3-none-any.whl.
File metadata
- Download URL: timesheet_tool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f47cb4ffd00dae0b841ec26f964557a8fae73f59e9bc6ca4422abdd994cd38de
|
|
| MD5 |
d3c3394fb4af7364c8e1bd8c4c1fa404
|
|
| BLAKE2b-256 |
5a5048dc046ebcec90d12d346a7cd13c2ea23f31e8391348f4ba14836741393b
|