YouTrack Standalone 2019.3 Help

GET Time Tracking Settings for a Project

GET /rest/admin/project/{projectId}/timetracking

Get the current time tracking settings for a specific project.

GET /rest/admin/project/{projectId}/timetracking

Sample

Request:

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

Response:

Depending on the current status of time tracking parameters in the specific project, the response might differ as follows:

Time tracking is not enabled for the project:

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 296 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="false"/>

Time tracking is enabled for the project, but not configured:

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 296 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="true"/>

Time tracking is configured but disabled:

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 296 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="false"> <estimation name="Estimation" url="http://***.myjetbrains.com/youtrack/rest/admin/project/{projectId}/customfield/Estimation"/> <spentTime name="Spent time" url="http://***.myjetbrains.com/youtrack/rest/admin/project/{projectId}/customfield/Spent%20time"/> </settings>

Time tracking is enabled and partially configured:

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 296 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="true"> <spentTime name="Spent time" url="http://***.myjetbrains.com/youtrack/rest/admin/project/{projectId}/customfield/Spent%20time"/> </settings>
Last modified: 16 March 2020