YouTrack Standalone 2019.3 Help

Operations with Specific GlobalTimeTrackingSettings

This resource lets you configure system-wide time tracking settings.

Resource

/api/admin/timeTrackingSettings

Returned entity

GlobalTimeTrackingSettings. For the description of the entity attributes, see Supported Fields section.

Supported methods

GlobalTimeTrackingSettings attributes

Represents time tracking settings of your server.

This table describes attributes of the GlobalTimeTrackingSettings entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

workItemTypes

Array of WorkItemTypes

Collection of available work item types. Read-only.

workTimeSettings

WorkTimeSettings

Server's work schedule settings. Read-only.

Read a Specific GlobalTimeTrackingSettings

Read the time tracking settings of your service.

Required permissions

Requires Read Work Item permission.

Request syntax

GET /api/admin/timeTrackingSettings?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of GlobalTimeTrackingSettings attributes that should be returned in the response. If no field is specified,only the entityID is returned

Sample

Sample request URI

https://example.myjetbrains.com/youtrack/api/admin/timeTrackingSettings?fields=workItemTypes(name,autoAttached,id),workTimeSettings(daysAWeek,firstDatOfWeek,minutesADay,workDays,id)

Sample response body

{ "workItemTypes": [ { "autoAttached": true, "name": "Development", "id": "65-0", "$type": "WorkItemType" }, { "autoAttached": true, "name": "Testing", "id": "65-1", "$type": "WorkItemType" }, { "autoAttached": true, "name": "Documentation", "id": "65-2", "$type": "WorkItemType" }, { "autoAttached": false, "name": "R-n-D", "id": "65-3", "$type": "WorkItemType" } ], "workTimeSettings": { "minutesADay": 480, "daysAWeek": 5, "workDays": [ 1, 2, 3, 4, 5 ], "id": "64-0", "$type": "WorkTimeSettings" }, "$type": "GlobalTimeTrackingSettings" }
Last modified: 16 March 2020