YouTrack Standalone 7.0 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

ParameterTypeDescription
hoursADayIntegerNumber of hours in a working day
daysAWeekIntegerNumber of working days in a week. Since YouTrack 5.1 this setting is calculated automatically from the list set by the workWeek parameters.
workWeeklistLogical construction that designates a list of work days (list of workDay parameters).
workDayIntegerInteger 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 http://localhost:8081/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 Server: Jetty(6.1.23) <?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: 2 February 2017