YouTrack InCloud 7.0 Help

Get Available Work Items of Issue

GET /rest/issue/{issue}/timetracking/workitem/

Get the list of available work items for a particular issue.

GET /rest/issue/{issue}/timetracking/workitem/

Parameters:

NameTypeDescription
issueissue idIssue ID of an issue for which you'd like to get a list of all available work items.

Response parameters:

For each work item in response code, you will get the following parameters:

ParameterTypeDescription
<id> stringUnique ID of a work item. This ID should be used in request methods to edit or delete a work item.
<date> msDate of the work item (the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this date).
<duration> minutesDuration of the work item in minutes.
<description> stringDescription of the work item.
<author> stringUser login name of the author of the work item. In addition, we provide the URL to user's profile.

Also, for each work item we provide unique URL to access this work item (as 'URL' attribute for the <workItem> parameter). See the section below for samples.

Samples

Sample 1

Request

GET http://localhost:8081/rest/issue/HBR-63/timetracking/workitem Cookie: $Version=0; JSESSIONID=i3p6eke3gf1o1s3zqdlz31ozf; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

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: 78 Server: Jetty(8.1.7.v20120910) <?xml version="1.0" encoding="UTF-8" standalone="yes"?><workItems></workItems>

Sample 2

Request

GET http://localhost:8081/rest/issue/HBR-63/timetracking/workitem Cookie: $Version=0; JSESSIONID=i3p6eke3gf1o1s3zqdlz31ozf; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

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: 727 Server: Jetty(8.1.7.v20120910) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <workItems> <workItem url="http://unit-258.labs.intellij.net:8080/charisma/rest/issue/HBR-63/timetracking/workitem/101-1"> <id>101-1</id> <date>1353316956611</date> <duration>240</duration> <description>first work item</description> <author login="root" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/user/root"/> </workItem> <workItem url="http://unit-258.labs.intellij.net:8080/charisma/rest/issue/HBR-63/timetracking/workitem/101-2"> <id>101-2</id> <date>1352894400000</date> <duration>480</duration> <description>second work item</description> <author login="root" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/user/root"/> </workItem> </workItems>

Sample 3

Request

GET http://localhost:8081/rest/issue/HBR-63/timetracking/workitem Cookie: $Version=0; JSESSIONID=i3p6eke3gf1o1s3zqdlz31ozf; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

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: 409 Server: Jetty(8.1.7.v20120910) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <workItems> <workItem url="http://unit-258.labs.intellij.net:8080/charisma/rest/issue/HBR-63/timetracking/workitem/101-1"> <id>101-1</id> <date>1353316956611</date> <duration>230</duration> <description>first work item edited</description> <author login="root" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/user/root"/> </workItem> </workItems>
Last modified: 29 September 2016