CLI tool for moving the daily worklogs from Clockify to Jira
Format for Clockify task description:
[DEV-<jira task number>] <task comment>
Example:
[DEV-420] smoke testing
Build the binary from the source code:
nim build
Collect all the required values for environment variables:
- JIRA_HOST - your company's Jira hostname. Example: https://{yourcompanyname}.atlassian.net
- JIRA_USERNAME - your Jira account email
- JIRA_TOKEN - personal token for using Jira API. Here is the instruction how to use it
- CLOCKIFY_API_KEY - API key for you Clockify account
- CLOCKIFY_WORKSPACE_ID - ID of the workspace where the target Clockify project located
- CLOCKIFY_TARGET_PROJECT_ID - ID of the project for which you want to move time entries to Jira
Set these values as an anvironment variables
Run the command with target date as an argument:
./bin/syncTimeEntries 2022-04-03
if argument is not provided, the current day will be used by default