Previous posts looked at how to define REST view commands to integrate Rational Focal Point and the Collaborative Lifecycle Management applications. It’s pretty straightforward, if you can find the properties you want. Sometimes, you may not be sure what properties or data is actually available, or may want a particular property but can’t find it in the artifact’s template XML. In those cases, it’s helpful to use an interactive REST client to explore the artifact’s representation and discover its properties and associated resources (which often contain properties of their own that are of interest for the integration).
In the first video, we see how to use a REST client to query an RTC work item’s representation, and then to drill down into specific aspects of that representation, namely the resources associated with the work item. In the second, we see how to apply the knowledge of those underlying resources and properties when defining REST view commands.
Video 1: using the REST client to explore RTC artifacts
Video 2: defining REST view commands to access artifact resources and properties
My parting words on this: be curious, and give it a try. If something in the artifact properties looks interesting, or you don’t know what it is, query it and find out. Set up a playground environment so you can try exchanging values between different artifact properties, and see what happens. I discovered quite a bit through simple trial and error.
Happy integrating!