"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.
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
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.
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
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