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

How to query work items by state via oslc?

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

0 votes


Accepted answer

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

0 votes

Comments

Thank you it works for me too

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
× 10,938
× 516

Question asked: Sep 18 '12, 6:05 a.m.

Question was seen: 5,313 times

Last updated: Sep 24 '12, 3:24 a.m.

Confirmation Cancel Confirm