Problem in 'Querying for requirements'
Hi,
I am trying to fetch the requirements from Requirements Management project(JKE Banking RM). For that i am using OslcQueryParameters object, and after setting the 'prefix', 'where' and 'select' when i submit the query i am not able to get the MembersUrls from the result.
OslcQueryParameters query = new OslcQueryParameters();
query.setPrefix("oslc_rm=<http://open-services.net/ns/rm#>");
query.setWhere("oslc_rm:trackedBy=<http://rmprovider/requirements/2>");
query.setSelect("*");
OslcQuery q = new OslcQuery(client, queryCapability,15,query);
OslcQueryResult result = q.submit();
System.out.println("Query result size : "+result.getMembersUrls().length);
here i am getting the size as 0, but there are requirements present in the JKE Banking project with trackedBy="http://rmprovider/requirements/2".
Any help on this is appreciated. |
One answer
Have you confirmed the OSLC query is working in a browser? It may be easier to find out what's wrong there. Once you get it right, you can then split the parameters and plug into your code. I can confirm that using "oslc_rm:trackedBy" in an OSLC query does work.
P.S. The Tracked By link is usually associated with a work item in the CCM application. Are you really sure that it is associated with another requirement artifact in your system? |
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.