It's all about the answers!

Ask a question

Edit a query with Clearquest oslc Rest API


OLIVIER COULON (611) | asked Jan 04 '15, 4:51 a.m.
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

Comments
Donald Nong commented Jan 22 '15, 7:25 p.m.

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
Argeu Aprigio Alcantara (2113) | answered Jan 22 '15, 9:43 a.m.
edited Jan 22 '15, 9:44 a.m.
 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"

Your answer


Register or 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.