How to get Build "Activities" from RTC using OSLC
When looking at build results using the RTC web client I'm able to see tabs like "Overview", "Activities", "Compilation", "Downloads" and a few others.
With help from this question I am able to get most of the build results data shown at the web client using OSLC. However, I'm not sure how to get data from the "Activities" section.
Is there a way to get information from the "Activities" section of a particular build using OSLC?
With help from this question I am able to get most of the build results data shown at the web client using OSLC. However, I'm not sure how to get data from the "Activities" section.
Is there a way to get information from the "Activities" section of a particular build using OSLC?
Accepted answer
Hi Dale, sorry for the delay in responding. While one can list contributions to a build via the OSLC Automation API, there's no way to list activities currently (they're treated differently than contributions in the RTC Build model).
It's possible to list activities using the REST interface that services our web UI, if you know the build result UUID (the UUID in the automation result link). e.g. here's the actitivies resource for our 4.0.3 rtc.jcb build (the query arg is just for debugging):
https://jazz.net/jazz/resource/virtual/build/activities/_901dIL9EEeKLr8jDj3OJ2w?_prettyPrint=true
Note that the response is in JSON, which may be different than the representation you're using for OSLC queries.
Comments
We can consider including activities in the OSLC Automation representation, perhaps as contributions. I'm not sure it makes sense to overload the spec's notion of contributions in that way, but I don't see any other means of adding them given the current spec. I think there's work afoot in OSLC to capture the general notion of activities, so we should check into that. Feel free to file an enhancement request against RTC/Build.