It's all about the answers!

Ask a question

OSLC 2.0 Query with oslc.where parameter dcterms:type returns 400 unknown attribute ID

Melanie Finke (7731520) | asked Aug 30 '12, 6:25 a.m.
edited Aug 30 '12, 8:19 a.m.

I try to get only WorkItems of type defect by OSLC 2.0 in application/rdf+xml format.

At the Jazz Team Wiki I found a example to query workItems with a specific title.

Taking that as an example I tried to get all defects like that:

The example works fine, but my query returns statuscode 400 unknown attribute ID:

Looking at a representation of a Workitem I see there is a

Task</dcterms:type> tag.

Do I have to modify somethingelse to get the work Items of a specific type?

Accepted answer

permanent link
Takehiko Amano (1.3k3741) | answered Sep 04 '12, 12:30 a.m.
I see this question before, please refer to my answer in the entry.

I believe this is defect.

Melanie Finke selected this answer as the correct answer

2 other answers

permanent link
David MICHEL (1472548) | answered Aug 02 '13, 9:54 p.m.
   I have the same issue with the parameter oslc_cm:status. Is it the same defect or I have made something wrong ?
My environment is:
RTC 4.0.3
Plugin: RESTClient
Header: Accept: application/rdf+xml and OSLC-Core-Version:2.0
Request GET: <server>/ccm/oslc/contexts/<project areas ID>/workitems?oslc.where=oslc_cm:status="new"
Answer of the request:
  • <rdf:RDF
  • xmlns:rdf=""
  • xmlns:oslc="" >
  • <rdf:Description rdf:nodeID="A0">
  • <oslc:message>Unknown attribute id: []</oslc:message>
  • <oslc:statusCode>400</oslc:statusCode>
  • <rdf:type rdf:resource=""/>
  • </rdf:Description>
  • </rdf:RDF>
  • Could you confirm me that is or not the same defect ?

    Thank you in advance

    Best regards

    Takehiko Amano commented Aug 05 '13, 4:22 a.m.

    This looks like the same defect.  To work around, use rtc_cm:state with the last string of state. For example, to find "New", use like this.


    To find the string value of each state, use

    ccm/oslc/workflows/<project area>/states/

    This is for task work flow.

    David MICHEL commented Aug 05 '13, 4:48 a.m.

    I have tried, just now and I have no more the error message but I get all the workitem. The condition oslc.where seems not to be taken account. I set any value for rtc_cm:state and I get all the time the same result.
    Do you have an idea ?

    Thank in advance

    permanent link
    Markus Schneider (1) | answered Dec 06 '15, 5:02 a.m.
    This worked for me in RTC 6.0.1
          rtc_cm:type= ""

    Donald Nong commented Dec 06 '15, 5:47 p.m.

    This is the known workaround. The problem is with "dc:type" or "dcterms:type". The fix is targeted to 6.0.2 Sprint 1.

    Binoy D'costa commented Nov 29 '17, 10:29 p.m.

    Hi Donald,

    This is not fixed in 6.0.3. I still get the unknown attribute id error. Can you please confirm? The workaround mentioned by Markus seems to be working.


    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.