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

How to Get sorted workitems list by using OSLC

Hi.

I want to get workitem list by using oslc like below.

https://rational:9443/ccm/oslc/contexts/_bKe8QPJZEeOf_LuWZSoZPQ/workitems?oslc_cm.query=rtc_cm:plannedFor="https://rational:9443/ccm/oslc/iterations/_bdq9-_JZEeOf_LuWZSoZPQ"&oslc.orderBy=+dc:identifier

rational is my servername.

But, I can't get sorted WorkItem list xml.

Please tell me what is wrong in this syntax.

0 votes

Comments

Hi.

Thank you for replying and teaching and testing various syntax.

I tried these method, and i can understand OSLC CM query syntax.

So, I can get sorted workitems list.

I would like to thank everyone.
Thank you!

Shintarou Yuasa


Accepted answer

Permanent link
 Hello,
based on https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20
I would use:
&oslc:orderBY=%2Bdc:identifier

let me know if this works

Eric

Shintarou Yuasa selected this answer as the correct answer

1 vote

Comments

Hi Eric, it does not seem to work - at least on jazz.net. Here is the link that I tried

The part starting from the question mark(?) is copied from "Example 6 - Work Items tagged with 'tvt' or 'mustfix sorted by Severity" in the article that you linked.


One other answer

Permanent link
Hi. I talked to Yuasa-san, then confirmed he wants to use olsc_cm.query instead of oslc.where.Then we should use /sort according to OSLC CM query syntax. See http://open-services.net/bin/view/Main/CmQuerySyntaxV1.

Thanks.
Koji

2 votes

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,029
× 516

Question asked: Jul 04 '14, 7:27 a.m.

Question was seen: 5,864 times

Last updated: Jul 11 '14, 1:45 a.m.

Confirmation Cancel Confirm