YouTrack Standalone 2020.6 Help

Operations with Specific TimeTrackingUserProfile

This resource lets you configure the time tracking settings in the user's profile.

Resource

/api/users/{userID}/profiles/timetracking

Returned entity

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

Supported methods

TimeTrackingUserProfile attributes

Represents time tracking settings in the user's profile.

This table describes attributes of the TimeTrackingUserProfile 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

periodFormat

PeriodFieldFormat

Format, in which period values are displayed for the user.

Read a Specific TimeTrackingUserProfile

Get user's time tracking settings.

Required permissions

Requires Read Self to read own profile and Read User Full to read profile of another user.

Request syntax

GET /api/users/{userID}/profiles/timetracking?{fields}

Request parameters

Parameter

Type

Description

fields

String

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

Sample

Sample request

https://example.myjetbrains.com/youtrack/api/users/me/profiles/timetracking?fields=periodFormat(id)

Sample response body

{ "periodFormat": { "id": "HOURS_MINUTES", "$type": "PeriodFieldFormat" }, "$type": "TimeTrackingUserProfile" }

Update a Specific TimeTrackingUserProfile

Update user's time tracking settings.

Required permissions

Requires Update Self to update own profile and Update User to update profile of another user.

Request syntax

POST /api/users/{userID}/profiles/timetracking?{fields}

Request parameters

Parameter

Type

Description

fields

String

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

Sample

Sample request

https://example.myjetbrains.com/youtrack/api/users/me/profiles/timetracking?fields=periodFormat(id)

Sample request body

{ "periodFormat": { "id": "FULL" } }

Sample response body

{ "periodFormat": { "id": "FULL", "$type": "PeriodFieldFormat" }, "$type": "TimeTrackingUserProfile" }
Last modified: 30 March 2021