JiraLog allows you to track time on Jira with CLI
Download all dependencies with
composer install
After composer has finished downloading all the dependencies, give execution permissions to jiralog
file in root directory:
chmod +x jiralog
Create a symlink to the jiralog script in a shared path, for example
sudo ln -s /path/to/jiralog-project/jiralog /usr/local/bin/jiralog
Copy the .env.example
file into .env
.
Then, customize .env
with your data.
-
TEMPO_ENDPOINT: https://api.tempo.io/
Note: This version supports only Tempo.io in cloud
-
TOKEN : create the new api integration in your tempo.io app on jira and copy the token
-
AUTHOR_ACCOUNT_ID : you can copy it by the url of your jira profile
Get the list of all work attriutes available on tempo
jiralog tempo:work-attributes
Log a new worklog on tempo.io
jiralog tempo:log <date> <from> <to> <issue> [<comment>] [--attributes='key:value']
example
jiralog tempo:log 2021-08-25 1330 1400 TASK-73 "Comment"
another example with an attribute
jiralog tempo:log 2021-08-25 1330 1400 TASK-73 "Comment" --attributes='_Activity_:Analysis'
same example with alias
jiralog tempo:log 2021-08-25 1330 1400 TASK-73 "Comment" -a _Activity_:Analysis
vendor/bin/phpunit
This app is inspired by Redlog, a repo of Aleron75
Refer to LICENSE file for details.