IBM Software Group | Rational software Introduction IBM Rational Change (>= 188.8.131.52) supports the OSLC-CM 1.0 REST API specification. You can use this API to integrate Rational Change with OSLC-CM consumers (RPE,…) These slides explain how to extract CRs info from Rational Change using Rational Publishing Engine via the OSLC-CM REST API. The RPE version used is 184.108.40.206
IBM Software Group | Rational software Big steps The big steps to extract CRs info from Change are: 1.Check your Rational Change version implements the OSLC-CM REST API 2.Get the list of databases 3.Select a database and get the list of (Change) queries 4.Select a query and get the list of CRs you wish to report on 5.…create the template and build the report based on the CRs …..These steps are detailed in the next slides….
IBM Software Group | Rational software Check if Rational Change supports OSLC-CM REST API 1.Check Rational Change version >= 220.127.116.11 2.Check if the following XML is shown using this URL: http:// : / /rootservices
IBM Software Group | Rational software Get list of databases Enter this URL: http://localhost:8090/change_tls/oslc or http://192.168.11.10:8090/change_tls/oslc http://localhost:8090/change_tls/oslchttp://192.168.11.10:8090/change_tls/oslc Database name Database URI Enter admin login and password if required (i.e. in the TLS VM weve used the demo user).
IBM Software Group | Rational software Get queries for a database Add /role/User/queries to a database URI and copy all to your browser address bar: http://192.168.11.10:8090/change_tls/oslc/db/5a83734c-7c11-47a5-a9a3- 2f464fd7896d/role/User/queries http://192.168.11.10:8090/change_tls/oslc/db/5a83734c-7c11-47a5-a9a3- 2f464fd7896d/role/User/queries Rational Change folders to organize queries
IBM Software Group | Rational software Get the list of CRs running the query Click on the query (i.e All CRs) Copy this URL, this will be the Data Source URI requested by RPE Launcher
IBM Software Group | Rational software RPE – Add Datasource Schema to template Add Datasource Schema Add ?metadata=schema to the previously copied URL to get the Schema file location: http://192.168.11.10:8090/change_tls/oslc/db/5a83734c-7c11-47a5-a9a3- 2f464fd7896d/role/User/queries/system/All%20CRs?metadata=schema
IBM Software Group | Rational software Data source schema in the dta template
IBM Software Group | Rational software Map datasource schema to datasource in the RPE Launcher Enter the URL copied in slide 7. (Remember user/password!!!)
IBM Software Group | Rational software Create the template and generate the report