It's all about the answers!

Ask a question

"Unknown attribute id" error trying to query work item state via the REST api


Stephen Rowles (13) | asked Oct 01 '15, 8:28 a.m.
Hi,

I'm trying to query using the REST api to find work items that are tagged with a specific tag and are "open" (that is either: new, inprogress, reopened)

I've supplied the headers:
Accept: application/json
OSLC-Core-Version: 2.0

And I'm performing a GET on:

http://www.example.com/oslc/contexts/<projectIdHere>/workitems?oslc.where=dcterms:subject="mytag" and rtc_cm:state{rtc_cm:group="open"}

However I get the error:

"prefixes":{"oslc":"http:\/\/open-services.net\/ns\/core#"},"oslc:message":"Unknown attribute id: [http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/state, http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/group]","oslc:statusCode":400}

Any suggestions on how to find the right query? I've also tried querying the state string but I get a similar error.

One answer



permanent link
Arun K Sriramaiah (3.2k13177) | answered Oct 01 '15, 8:44 a.m.
Hi Stephen,

Please refer it similar forum question posted with statusCode=400 and let us know does it helps.

https://jazz.net/forum/questions/86619/oslc-20-query-with-oslcwhere-parameter-dctermstype-returns-400-unknown-attribute-id

Regards,
Arun.

Comments
Stephen Rowles commented Oct 01 '15, 8:58 a.m.

Looks like I can use rtc_cm:state=2 to query a particular state, as in your other question, but that doesn't solve the "open" state query

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.