Question & Answer
Question
How do you use "oslc.where" to get filtered resutlset on the fly in IBM Rational ClearQuest Web Client?
Cause
This is required to get filtered resutlset and to be able to modify filters on the fly while using IBM Rational ClearQuest Web Client.
Answer
Prerequisite:
- OSLCLinks package 1.2 should have been applied to the ClearQuest Schema and to the Record Type for which you want to use "oslc_cm.query".
Review the Information Center Procedure to apply OSLCLinks Package for more details.
- You will need RESTClient here to illustrate the use of "oslc.where" parameter.
Download the RESTClient plug-in from RESTClient, a debugger for RESTful web services.
- Check if the RESTClient is installed on your machine
Click Tools > RESTClient in Firefox browser
Procedure:
- Open the RESTClient as follows: Click Tools > RESTClient in Firefox browser.
This should open a new Firefox window.
- Click Headers > Custom Headers
This will open a new window for a Request Header.
- Provide the Name as OSLC-Core-Version and Value as 2.0
- Set Method to GET in the browser
- Type the following in the URL text box:
http:///cqweb/oslc/repo/ /db/ /simpleQuery/ ?oslc.where=cq:State="Submitted"
Example 1:
http://LocalHost/cqweb/oslc/repo/Connection1/db/SAMPL/simpleQuery/16777…"Submitted"
This URL will return all the records of Record Type Defect (DB ID for Defect Record Type is = 16777224) where State is "Submitted".
Example 2:
http://LocalHost/cqweb/oslc/repo/Connection1/db/SAMPL/simpleQuery/16777…"Submitted" and cq:Severity="High"
This URL will return all the records of Record Type Defect (DB ID for Defect Record Type is = 16777224) where State is "Submitted" And "Severity" is "High".
[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Client (7.1)","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.1.2.7","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21645994