Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to update multiple attributes in one Workitem using OSLC Query?

 Hi Team,

We are using CLM 7.0.2(EWM) version in that we have a Json payload contains multiple attributes data of one specific Workitem, by using that payload we have to write a OSLC Query to update multiple attributes at a time in CLM .

Present we are able to update only one attribute by using below steps:
String workitemUrl = cnfprop.getWebContextUrl() + "/oslc/workitems/" + workitemid + ".json";
HttpPut httpput = new HttpPut(workitemUrl);
httpput.setHeader("Content-Type", "application/x-oslc-cm-change-request+json");
HttpEntity myEntity = new StringEntity("{\"rtc_cm:milestone_due_date\":\"" + milestoneDueDateFinal + "\"}");

So is there any way to update multiple attributes at a time in one Workitem using OSLC Query. If possible please share document or links available.

Thanks.

0 votes



One answer

Permanent link

 You can not update anything with OSLC Query. You can query with OSLC Query.

See https://docs.oasis-open-projects.org/oslc-op/core/v3.0/oslc-core.html for the defined content headers. I am not sure EWM supports JsonLD. 

In general OSLC works as follows: You GET the resource URI, the data that is returned can be modified and PUT back. This includes updating multiple attributes..

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 7,495
× 1,325

Question asked: Dec 07 '23, 2:34 a.m.

Question was seen: 808 times

Last updated: Dec 07 '23, 2:49 a.m.

Confirmation Cancel Confirm