YouTrack Standalone 7.0 Help

Create New Work Item

POST /rest/issue/{issue}/timetracking/workitem

Create new work item for a particular issue.

POST /rest/issue/{issue}/timetracking/workitem

Parameters:

Name Type Description
issue issue id Issue id to attach files to

In the request code you should provide the following parameters for a new work item (a work item is designated with <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
  4. <worktype> — work item type

For a sample code please see below.

Sample

Request

POST http://localhost:8081/rest/issue/HBR-63/timetracking/workitem Cookie: $Version=0; JSESSIONID=i3p6eke3gf1o1s3zqdlz31ozf; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/ <workItem> <date>1353316956611</date> <duration>240</duration> <description>first work item</description> <worktype> <name>Development</name> </worktype> </workItem>

Response

HTTP/1.1 201 Created Vary: Accept-Encoding Location: https://example.com/youtrack/rest/issue/HBR-63/timetracking/workitem/101-1 Content-Type: application/xml; charset=UTF-8 Cache-Control: no-cache, no-store, no-transform, must-revalidate Content-Length: 0 Server: Jetty(8.1.7.v20120910)
Last modified: 2 February 2017