How can I get resource info except workitem via REST API?
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
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
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