Accessing RTC Work Items Programatically
I am fairly new to RTC and am looking for a way to both query and update work items via the REST API :
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2 . I can access the root services document at .../jazz/rootservices but it does not contain the element:
<oslc_cm:cmServiceProviders rdf:resource="https://localhost:9443/jazz/oslc/workitems/catalog"/>
I'm wondering if an admin has to enable the REST API so I can programmatically query the work items? For example, I just want to get a JSON representation of a single work item.
Additionally:
My end goal is to create a web service that will call on the API to update work items which will be hit by a form; at this point I'm just trying to hit the API and am struggling to get traction. If anyone has any suggestions or useful links, I would be grateful.
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2 . I can access the root services document at .../jazz/rootservices but it does not contain the element:
<oslc_cm:cmServiceProviders rdf:resource="https://localhost:9443/jazz/oslc/workitems/catalog"/>
I'm wondering if an admin has to enable the REST API so I can programmatically query the work items? For example, I just want to get a JSON representation of a single work item.
Additionally:
My end goal is to create a web service that will call on the API to update work items which will be hit by a form; at this point I'm just trying to hit the API and am struggling to get traction. If anyone has any suggestions or useful links, I would be grateful.
Accepted answer
The server that you are using has a non-standard configuration. The URL that you used points to JTS, not CCM/RTC. If you check the /jazz/rootservices document, you will see that <dc:title> is "Rational Jazz Team Server". If you then follow the /jazz/application-about link, you will also see that the version is 5.0.2
For this particular server, the context root for CCM/RTC is /ccm or /rtc. Both /ccm/rootservices and /rtc/rootservices return the same document, which confirms that the correct context root should be /rtc. In this document, you will see the tag that you are looking for, and also notice that <dc:title> is "Change and Configuration Management".
In summary, the starting point for your exercise is https://sma-unleash.ratl.swg.usma.ibm.com:9445/rtc/rootservices
For this particular server, the context root for CCM/RTC is /ccm or /rtc. Both /ccm/rootservices and /rtc/rootservices return the same document, which confirms that the correct context root should be /rtc. In this document, you will see the tag that you are looking for, and also notice that <dc:title> is "Change and Configuration Management".
In summary, the starting point for your exercise is https://sma-unleash.ratl.swg.usma.ibm.com:9445/rtc/rootservices
Comments
One other answer
Consider: Open Services for Lifecycle Collaboration Workshop and Developing an OSLC consumer to collaborate with the Requirements Management application.
I tried to collect some information on OSLC and REST here: https://rsjazz.wordpress.com/interesting-links/ even if the blog is really not about REST/OSLC yet.
I tried to collect some information on OSLC and REST here: https://rsjazz.wordpress.com/interesting-links/ even if the blog is really not about REST/OSLC yet.
Comments
Donald Nong
Sep 22 '15, 8:12 p.m.Gregory Hatt
Sep 23 '15, 8:41 a.m.1 vote