IBM Support

How to use "oslc.where" to get filtered resutlset on the fly

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:


  • Check if the RESTClient is installed on your machine

    Click Tools > RESTClient in Firefox browser


Procedure:
  1. Open the RESTClient as follows: Click Tools > RESTClient in Firefox browser.
    This should open a new Firefox window.

  2. Click Headers > Custom Headers
    This will open a new window for a Request Header.

  3. Provide the Name as OSLC-Core-Version and Value as 2.0

  4. Set Method to GET in the browser

  5. 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"}}]

Document Information

Modified date:
16 June 2018

UID

swg21645994