Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Edit a query with Clearquest oslc Rest API

Hello,

Currently I'm using Clearquest from the WEB interface but I need now to build scripts based on Clearquest API. But to do that, I  need to extract the filtering criteria from a existing query. I know to do it from WEB client but I haven't found any way to do it with oslc Rest API. Is it possible to do it and if it is, could you give the syntax of the command or some examples ?

Thanks in advance for your support

0 votes

Comments

If I'm not mistaken, the ClearQuest OSLC 2.0 REST API does not have the ability to retrieve existing queries. So I'm actually not so sure what you are trying to do.
https://jazz.net/wiki/bin/view/Main/CqOslcV2



One answer

Permanent link
 To query anything you must specify the properties, I don't know why, that's just how it is.
the url below will list all workitems that have been modified past that date, with the properties listed in the attribute
https://localhost:9443/ccm/oslc/contexts/:yourProjectAreaIdentifier/workitems?oslc_cm.properties=rtc_cm:resolved,dc:modified,rtc_cm:contextId,dc:identifier,rtc_cm:estimate,rtc_cm:correctedEstimate,rtc_cm:timeSpent,rtc_cm:ownedBy,dc:title,rtc_cm:timeSheet,rtc_cm:state,dc:type&&oslc_cm.query=dc:modified>"2015-01-01T00:00:00.000Z"

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516
× 201
× 6

Question asked: Jan 04 '15, 4:51 a.m.

Question was seen: 5,389 times

Last updated: Jan 22 '15, 7:25 p.m.

Confirmation Cancel Confirm