It's all about the answers!

Ask a question

How to Get sorted workitems list by using OSLC


Shintarou Yuasa (723) | asked Jul 04 '14, 7:27 a.m.

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.


Comments
Shintarou Yuasa commented Jul 11 '14, 1:45 a.m.

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
Eric Jodet (6.3k5111120) | answered Jul 08 '14, 2:35 a.m.
JAZZ DEVELOPER
edited Jul 10 '14, 1:25 a.m.
 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

Comments
Donald Nong commented Jul 08 '14, 3:05 a.m.

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
Kohji Ohsawa (5951310) | answered Jul 10 '14, 5:27 p.m.
JAZZ DEVELOPER
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

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.