Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 859 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 859 Bytes

Log your work - Youtrack

The purpose of this tool is log your work to Youtrack from a csv file.

How to use it

  1. Generate a token
  2. Set generated token in AUTH_TOKEN variable
  3. Generate csv file. See
  4. Run script ./log-youtrack-work.sh filename.csv

Generating csv file

The format of the csv file is

06/29/20,10,PROJECT-1,"A work item type","Daily meeting"

Columns

  1. Date
  2. Issue id
  3. Work item type
  4. Description

How to get work item types

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.