Use Reportable REST API to obtain Child Work Item attributes based on Parent and Child attributes
BACKGROUND:
I need to retrieve two custom attributes from all work items of a certain type based on the State and Planned For of the parent items. I may also want to return attributes from the parent along with each child work item row. Note that the work item type of the children items (the rows I want to return - a custom type) is different than the work item types of the parents (defect, business need, etc.).
QUESTION:
Is it possible to achieve this using the REST API?
EXAMPLE output:
|
Planned For (based on Parent item)
|
State [or Resolution]
(based on Parent item)
|
Custom Attribute 1 (from child)
|
Custom Attribute 2 (from child)
|
Parent ID
|
Child ID
|
|
8.7 |
Waiting String
|
FRM_DEMO
|
1.2
|
64
|
102
|
|
8.6 |
Waiting String
|
FRM_CLST
|
1.13
|
25
|
93
|
|
8.6 |
Waiting ST
|
FRM_CLST
|
1.5
|
25
|
76
|
|
8.6 |
Waiting UAT
|
FRM_NOTE
|
1.9
|
13
|
85
|
Accepted answer
You can check out this jazz.net wiki for CCM reportable REST API:
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI
Please find a sample URL below. You can try it out and see if it gives the information you are looking for.
https://<server:port>/ccm/rpt/repository/workitem?fields=workitem/workItem/(id|summary|state/(name|group)|parent/*|children/*|customAttributes/*)
Comments
sam detweiler
Jun 21 '13, 9:12 a.m.Michael Taylor
Jun 21 '13, 12:34 p.m.