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.

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:<projectIdHere>/workitems?oslc.where=dcterms:subject="mytag" and rtc_cm:state{rtc_cm:group="open"}

However I get the error:

"prefixes":{"oslc":"http:\/\/\/ns\/core#"},"oslc:message":"Unknown attribute id: [http:\/\/\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/state, http:\/\/\/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.2k12263) | 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.


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.