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

Technote (FAQ)


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/16777224?oslc.where=cq:State="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/16777224?oslc.where=cq:State="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".

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearQuest
Web Client (7.1)

Software version:

7.1.2.7

Operating system(s):

Windows

Reference #:

1645994

Modified date:

2013-08-22

Translate my page

Machine Translation

Content navigation