YouTrack Standalone 7.0 Help

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 http://localhost:8081/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 http://localhost:8081/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 http://localhost:8081/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 field used for the time estimating:
    PUT http://localhost:8081/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: 29 September 2016