YouTrack Standalone 2017.2 Help

Edit Existing Work Item

PUT /rest/issue/{issue}/timetracking/workitem/{workitemID}

Edit existing work item for a particular issue.

PUT /rest/issue/{issue}/timetracking/workitem/{workitemID}

Parameters:

Name

Type

Description

issue

issue id

Issue id for which you'd like to edit a work item.

workitemID

string

Unique ID of the existing work item to edit.

In the request code you can edit provide the following parameters of a work item (within <workItem> tag):

  1. <date> — date and time of the new work item in Unix Epoch time format

  2. <duration> — duration of the new work item, in minutes

  3. <description> — activity description

Sample

Request

PUT https://example.com/youtrack/rest/issue/HBR-63/timetracking/workitem/101-1 Cookie: $Version=0; JSESSIONID=i3p6eke3gf1o1s3zqdlz31ozf; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/ <workItem> <date>1353316956611</date> <duration>230</duration> <description>first work item edited</description> </workItem>

Response

HTTP/1.1 200 OK Vary: Accept-Encoding Content-Type: application/xml; charset=UTF-8 Cache-Control: no-cache, no-store, no-transform, must-revalidate Content-Length: 0
Last modified: 7 March 2019