Documentation does not specify return content

The documentation at:
http://confluence.jetbrains.com/display/YTD5/Create+New+Work+Item

Does not specify the content of the response.

What is actually returns is similar to what is documentated at:
http://confluence.jetbrains.com/display/YTD5/Get+Available+Work+Items+of+Issue

Yet, it returns a single WorkItem, like:

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

It would be nice of the documentation were to be updated.
Same goes for:
http://confluence.jetbrains.com/display/YTD5/Edit+Existing+Work+Item
0
3 comments
Robert, thanks for the notice. I'll look into it.
0
Robert,
I've asked our engineers to check the doc and both POST and PUT methods for work items, and it still works for us as described in the docs. No content is returned for POST/PUT work items.
Could you please check the method you use and if the problem is reproduced, could you please send us both the request and the response you get?

Sincerely,
Kate
0
Avatar
Permanently deleted user
Dear Kate,

Sorry for crying wolf so early. It seems that I used a get request, instead of POST/PUT.
Nonetheless, it would be useful it the method were to return at least the Id of the newly created workitem. Is there any suggested approach to getting its' id?
0

Please sign in to leave a comment.