It's all about the answers!

Ask a question

How to query work items by state via oslc?


Melanie Finke (7731520) | asked Sep 18 '12, 6:05 a.m.
Hello,

I tried to query the work items by state like descripted in a earlier post.
https://jazz.net/forum/questions/55646/how-do-i-query-workitems-by-state-via-oslc

The url Query:
oslc.where=rtc_cm:state="{open}"&oslc.prefix=rtc_cm=(rtc Namespace)

The result is a xml with 0 work Items, but I have 11 Work Items in my project Area and the most are in state New.
The keyword new instead of open I tried as well.

Is there a difference in OSLC 2.0 and the described OSLC 1.0 in this case?
I am using RTC 4.0.

Best regards

Accepted answer


permanent link
Takehiko Amano (1.3k3741) | answered Sep 20 '12, 5:10 a.m.
JAZZ DEVELOPER
I thought I should reply to this question (I'm the one who raised question. :) )

It worked for me (I'm using RTC 4.0). Have you set the header correctly ?  This is the example url which I have tried. Note the <project-id> should be changed to real project id.

https://clm.example.com:9443/ccm/oslc/contexts/<project_id>/workitems?oslc.paging=true&oslc.pageSize=100&oslc.where=rtc_cm:state="{closed}"&oslc.select=dcterms:identifier,dcterms:title,oslc_cm:status

Try to use Poster firefox plugin. (Set  Accept: application/xml, OSLC-Core-Version: 2.0) to see if it works for you too.




Melanie Finke selected this answer as the correct answer

Comments
Melanie Finke commented Sep 24 '12, 3:24 a.m.

Thank you it works for me too

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.