It's all about the answers!

Ask a question

How to get all items from given type, RTC 6.0.1M1?


Dinyo Dinev (311034) | asked Oct 02 '15, 6:01 a.m.
edited Oct 02 '15, 8:00 a.m. by Ralph Schoon (63.1k33645)
Hi, I created a workItem type named "custom" and I want to find all artifacts from from that workItem. So I do GET request using POSTman tool:


https://10.0.2.79:9443/ccm/oslc/contexts/_tsVvMWWwEeWQIIEAtKgWEg/workitems?oslc.where=rtc_cm:type="custom"&oslc.prefix=rtc_cm=<http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0>

But get the error:
<rdf:RDF
   
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   
    xmlns:oslc="http://open-services.net/ns/core#" >
    <rdf:Description rdf:nodeID="A0">
        <oslc:message>Unknown attribute id: [http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0type]</oslc:message>
        <oslc:statusCode>400</oslc:statusCode>
        <rdf:type rdf:resource="http://open-services.net/ns/core#Error"/>
    </rdf:Description>
</rdf:RDF>

Where is my wrong ? How to fix that?

One answer



permanent link
Donald Nong (14.5k414) | answered Oct 12 '15, 2:39 a.m.
You should use "dcterms:type" if you want to use the name of the work item type. The value of "rtc_cm:type" is the type URI.

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.