It's all about the answers!

Ask a question

How to remove some workitems from Workitem list attribute using OSLC API


Pallavi Deore (38139) | asked Sep 10 '20, 6:54 a.m.

 Hello,

 
I am using RTC 606.1.
I needed to remove few workitems from Workitem list attribute using OSLC API.
Kindly give me idea how I can do this.

Regards
Pallavi Deore

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Sep 11 '20, 3:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 As far as my knowledge of OSLC goes, it expects all the data representing the artifact in the request body. An update of an existing resource is done by a PUT request.


So I would suggest to remove the work item ID's from the list of the work items of that attribute and then PUT. 


Comments
Pallavi Deore commented Nov 18 '20, 3:23 a.m.

Hello Ralph,

Removing few workitems from RTC workitem list attribute is possible using OSLC API but when I tried to remove all workitems of that attribute, it is not working properly.
Can you give us idea on this?? How we can remove all workitems of a workitemlist attribute using OSLC API.


Ralph Schoon commented Nov 18 '20, 3:27 a.m. | edited Nov 18 '20, 3:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I have not worked with OSLC APIs a lot. I would suggest you have a look how the list attribute looks if it is empty (for an existing work item) and return that. 

Your answer


Register or 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.