Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.

0 votes



One answer

Permanent link
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.

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Oct 01 '15, 8:28 a.m.

Question was seen: 2,207 times

Last updated: Oct 01 '15, 8:58 a.m.

Confirmation Cancel Confirm