It's all about the answers!

Ask a question

How can I get resource info except workitem via REST API?


Rui Shen (51103) | asked Apr 27 '10, 6:14 a.m.
I found this url about REST API - https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2, but it only tells how to work with work items. But many of work item are resource link, such as severiy, priority, defect owner, etc. How can I get their detailed info?

For example, the following is a defect owner info when I retrieve a work item info. I need to know the user's name. What should I do?
https://localhost:9443/jazz/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA

One answer



permanent link
Patrick Streule (4.9k21) | answered May 01 '10, 3:43 a.m.
JAZZ DEVELOPER
I found this url about REST API -
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2,
but it only tells how to work with work items. But many of work item
are resource link, such as severiy, priority, defect owner, etc. How
can I get their detailed info?

For example, the following is a defect owner info when I retrieve a
work item info. I need to know the user's name. What should I do?
https://localhost:9443/jazz/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA

The Owner, Priority etc. are all links to other resources. You can just
follow these URLs and you get the user info or the Priority name/icon.

It is also possible to inline these directly into the work item
representation to avoid too many roundtrips.

https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2
and
http://open-services.net/bin/view/Main/CmRestApiV1

have more information on this.

--
Regards,
Patrick
Jazz Work Item Team

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.