Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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.

0 votes

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

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516

Question asked: Feb 04 '15, 6:07 a.m.

Question was seen: 3,229 times

Last updated: Feb 04 '15, 9:31 a.m.

Confirmation Cancel Confirm