YouTrack Standalone 2019.2 Help

GET System-wide Time Tracking Settings

GET /rest/admin/timetracking

Get current system-wide time tracking settings: a number of working days in a week, and a number of hours in a working day.

GET /rest/admin/timetracking

Response Parameters

Parameter

Type

Description

hoursADay

Integer

Number of hours in a working day

daysAWeek

Integer

Number of working days in a week. Since YouTrack 5.1 this setting is calculated automatically from the list set by the workWeek parameters.

workWeek

list

Logical construction that designates a list of work days (list of workDay parameters).

workDay

Integer

Integer sequential number for a day of week to be considered a working day: 0 - Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday.

Sample

Request:

GET https://example.com/youtrack/rest/admin/timetracking Connection: keep-alive Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/

Response:

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 296 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <timesettings> <hoursADay>8</hoursADay> <daysAWeek>5</daysAWeek> <workWeek> <workDay>0</workDay> <workDay>1</workDay> <workDay>2</workDay> <workDay>3</workDay> <workDay>4</workDay> </workWeek> </timesettings>
Last modified: 17 December 2019