Operations with Specific GlobalTimeTrackingSettings
This resource lets you configure system-wide time tracking settings.
Resource |
|
---|---|
Returned entity | GlobalTimeTrackingSettings. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
Represents time tracking settings of your server.
Below you can find the list of resources that let you work with this entity.
This table describes attributes of the GlobalTimeTrackingSettings
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the server time tracking settings. |
workItemTypes | The list of available work item types. | |
workTimeSettings | Server's work schedule settings. | |
attributePrototypes | The list of available work item attributes. |
Read the time tracking settings of your service.
Requires permissions: Read Work Item
GET /api/admin/timeTrackingSettings?{fields}
null | Database ID of GlobalTimeTrackingSettings |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of GlobalTimeTrackingSettings attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/timeTrackingSettings?fields=workItemTypes(name,autoAttached,id),workTimeSettings(daysAWeek,firstDatOfWeek,minutesADay,workDays,id)
{
"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"
}