upadating a workitem using oslc 2.0 in json format
how to update description field of a workitem using oslc 2.0 in json format?
|
Accepted answer
It is not much different from using the RDF/XML format. Basically you just follow the below steps.
1. Do a GET to retrieve the current JSON representation of the work item.
2. Locate the "Description" field by the keyword ""dcterms:description".
3. Change the "Description" content as desired.
4. Do a PUT with the changed JSON representation as a the payload and ensure that HTTP header "Content-Type: application/json" is added for the request.
5. If successful, you should get a HTTP 200 OK message.
Akshata Kulkarni selected this answer as the correct answer
|