YouTrack Server
 
2019.2
Get YouTrack Standalone
You are viewing the documentation for an earlier version of YouTrack Server. View this page in the current documentation

PUT Time Tracking Settings for a Project

Last modified: 17 December 2019

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

Configure time tracking settings for a specific project.

<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.