RTC OSLC search for workitems with a specific related artifacts URI
Hi,
We are currently using RTC 4.0.6 and I am writing a Java client program using Eclipse LYO to perform a OSLC search of work items. The search revolves around the Related Artifacts. I would like to find all workitems that currently have a related artifact link that exactly matches a URI, eg, "mike:bob:george".
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 gives a good description of what is needed to drive the query, but doesn't quite tell me how search on related artifacts. Any ideas?
Cheers,
Michael Baylis
IBM CICS TS DevOps & Test Infrastructure
IBM Hursley
We are currently using RTC 4.0.6 and I am writing a Java client program using Eclipse LYO to perform a OSLC search of work items. The search revolves around the Related Artifacts. I would like to find all workitems that currently have a related artifact link that exactly matches a URI, eg, "mike:bob:george".
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 gives a good description of what is needed to drive the query, but doesn't quite tell me how search on related artifacts. Any ideas?
Cheers,
Michael Baylis
IBM CICS TS DevOps & Test Infrastructure
IBM Hursley
One answer
Far as I know there is no mechanism to query the contents of a related artifact link.
you can find workitems WITH a Related Artifact link. (thru plain java api),
but cannot query the contents directly...
you would have to write more code to find the contents of the links of the workitems from the query results
I do not know what LYO provides in this regard.
you can find workitems WITH a Related Artifact link. (thru plain java api),
but cannot query the contents directly...
you would have to write more code to find the contents of the links of the workitems from the query results
I do not know what LYO provides in this regard.
Comments
I suspected this might be the case as you can't do this search through the Eclipse client either. Oh well, need to take a different approach. As I am only looking for defects that are open and have a related artifact, I can scan them for a specific one.
Any idea of the oslc query string for looking for items with a related artifact. Don't want to use the plain java api as it needs to be lightweight to go into a Jenkins plugin.
Cheers,
Michael
sorry, no idea how to use OSLC for this