YouTrack Standalone 7.0 Help

GET Time Tracking Settings for a Project

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

Get current time tracking settings for a specific project.

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

Sample

Request:

GET http://localhost:8081/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:

If time tracking is not enabled for the project:

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"?> <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 Server: Jetty(6.1.23) <?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 Server: Jetty(6.1.23) <?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 Server: Jetty(6.1.23) <?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: 29 September 2016