is it possible to update a collection via OSLC REST call(s)?
wondering if it's possible to update a custom field (test owners) of users via any OSLC REST api call(s)?
From the work item it is surfaced as: <rtc_cm:testowner oslc_cm:collref="https://csnext-test.ibm.com/jazz1/oslc/workitems/_CPercMLQEeCTNbydi54xcw/rtc_cm:testowner"/> and I can follow that resource reference and get the list of User entries... <oslc_cm:Collection ... ...but don't know how to update the collection. Either adding users to that collection or specifying all users and having the system create a new collection reference. Anyone successfully done something similar? |
One answer
In case someone else needs something similar I found something that works for my instance. The custom field "stakeholder" is a collection of users. The update replaces the existing collection with the one given in the partial put. The stakeholder rdf:resource= references are user references.
<oslc_cm:ChangeRequest xmlns:rdf="...." xmlns:oslc_cm="..."> |
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.