The purpose of this tool is log your work to Youtrack from a csv file.
- Generate a token
- Set generated token in AUTH_TOKEN variable
- Generate csv file. See
- Run script
./log-youtrack-work.sh filename.csv
The format of the csv file is
06/29/20,10,PROJECT-1,"A work item type","Daily meeting"
- Date
- Issue id
- Work item type
- Description
YOUTRACK_HOST="https://company.myjetbrains.com"
curl --location --request GET '${YOUTRACK_HOST}/youtrack/api/admin/timeTrackingSettings/workItemTypes?fields=$type,autoAttached,id,name' \
--header "Authorization: Bearer ${AUTH_TOKEN}"
Important: not all types are enabled for all issues. The default types are the ones with attribute autoAttached
in true.