PUT Time Tracking Settings for a Project
PUT /rest/admin/project/{projectId}/timetracking
Configure time tracking settings for a specific project.
PUT /rest/admin/project/{projectId}/timetracking
<SETTINGS>
<SETTINGS>
here is a XML-formatted set of settings to be set for a time tracking configuration in the specified project.
Sample
Request:
<SETTINGS>
block of parameters varies depending on the current status of time tracking and its configuration in the project:
To enable timetracking in the project without configuring fields:
PUT https://example.com/youtrack/rest/admin/project/TST/timetracking Connection: keep-alive Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="true"/>
To disable timetracking in the project:
PUT https://example.com/youtrack/rest/admin/project/TST/timetracking Connection: keep-alive Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="false"/>
-
To enable timetracking in the project and configure time tracking fields:
PUT https://example.com/youtrack/rest/admin/project/TST/timetracking Connection: keep-alive Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="true"> <estimation name="Estimation"/> <spentTime name="Spent time"/> </settings>
To change a field that is used for the time estimating:
PUT https://example.com/youtrack/rest/admin/project/TST/timetracking Connection: keep-alive Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <settings enabled="true"> <estimation name="EstimateTime"/> </settings>
Response:
In the response you get the acknowledgement of the operation, either successful or not.
Last modified: 7 March 2019