Best practices discovering resources with REST API for CCM
Hello!
We are developing an external integration to Jazz CLM, if to be more clear just to CCM solution. We are hardly following to diverse recommendations from IBM documentations and articles (for instance, to this one: https://jazz.net/library/article/352). For example, to update a work item of a single project area of Rational Team Concert, we get the information about this work item like next: 1. We do HTTP GET request in the way like next: GET https://rtc.com:9443/jazz/resource/itemOid/com.ibm.team.workitem.WorkItem/_0J39QJu-Ed6cerS9lb5AWw Accept: application/x-oslc-cm-change-request+xml 2. We parse the response and change the values of the response to new ones 3. We do HTTP PUT request using the updated work item presentation and change the actual data in RTC This way helps us to find all RDF resources for most of the used fields. But in this way, we are constrainted if we need to create a new item if especially there is no items in the project area still (to use an existing work item as a template for change). The next limitation that if a work item fields is empty then we don't have any RDF resources in the work item's presentation! And the question is related to the assumption that may be we goes a wrong way? What is a best practice to get the information about values of the complex fields where enumerations and other referenced resources are used? Thank you in advance! |
One answer
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.