TimeTracking Harvest to Jira Cloud
Technical stack:
- Laravel 5 (see parent page)
- Harves REST API V2 - https://help.getharvest.com/api-v2/
- Harvest API PHP Client (with support of V2) - https://github.com/wearerequired/harvest-api-php-client
- Jira Cloud API V3 - https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
- Jira API PHP Client (with support of V3) - https://github.com/lesstif/php-jira-rest-client
- Slack Webhooks - https://api.slack.com/messaging/webhooks
Supported scenarios:
- Transfer Time Logs for Specified Day from Harvest to Jira manually
- Transfer Time Logs for Previous Day from Harvest to Jira via Cron
Transfer Time Logs for Specified Day from Harvest to Jira manually
- SSH to the server with the app (dev server)
- see BW entry rackspace devnginx rocketweb ssh
- Navigate to TimeTracking App root folder
cd timetracking.rocketweb.com/
- Execute CLI command to import time logs to Jira for Specific day
php artisan jira:logtime -d "2021-02-03"
- If you require the time logs for the Previous Day that were sent to Jira - execute the same command without options. As default value, it takes the previous day.
Transfer Time Logs for Previous Day from Harvest to Jira via Cron
- SSH to the server with the app (dev server)
- see BW entry rackspace devnginx rocketweb ssh
Add to CRON next string -
* * * * * php /path/to/project/artisan schedule:run >> /dev/null2>&1
- It makes all CRONS from TimeTracking App work.
- Time Logs import to Jira will be done each day at 4.39 Server Time
To change this time:
- update app/Console/Kernel.php
$schedule->command('jira:logtime')->dailyAt('04:39');
No comments to display
No comments to display