Accessing list of work items which are having specific text using oslc api
Hello Everyone,
I am using CLM 6.0.6.
I want to access RTC work items which are having specific text using oslc API.
As I am new to OSLC API, I have followed OSLC workshop and I got some hint that I can use ?oslc.searchTerms="XXX" to search work items having specific text.
So I use code to accessed following URL:
1)I got Catalog URL.
2)I got Service provider URL
3)I got Simple Query URL: https://ketaki-pc/ccm/oslc/contexts/_WOOUkGc4Eemuucw8hGUKiw/workitems and also able to accessed all work items
4) But while accessing work items having specific text, I am getting exceptions
I use below code :
String queryWIs =simpleQueryURI+"?oslc.searchTerms=\"BI\"";
/ output for this line is: https://ketaki-pc/ccm/oslc/contexts/_WOOUkGc4Eemuucw8hGUKiw/workitems?oslc.searchTerms="BI" /
HttpGet query = new HttpGet(queryWIs); //getting exception on this line of code.
Execeptions are:
1) Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in query at index 87: https://ketaki-pc/ccm/oslc/contexts/_WOOUkGc4Eemuucw8hGUKiw/workitems?oslc.searchTerms="BI"
2) java.net.URISyntaxException: Illegal character in query at index 87: https://ketaki-pc/ccm/oslc/contexts/_WOOUkGc4Eemuucw8hGUKiw/workitems?oslc.searchTerms="BI"
Kindly help me where I am wrong and how we can use searchTerms in OSLC??
|
Accepted answer
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.