How are Deliverable attributes accessed when returned as an itemValue?
I'm attempting to grab a Deliverable type custom attribute for defects, but am having a hard time getting the information from my query. My query currently looks, in part, like the following:
2 answers
This shows the details of a deliverable: https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#deliverable_type_com_ibm_team_wo
Mitch, take this with a grain of salt, as I am not an expert in this reportable REST API.
If you use the Reportable REST API to get the work item ID, Summary and Planned for, you find that there are a lot of details in the Planned For attribute (target). E.g. use
[target] [uniqueId]c37178080d7640dc7cfa3209e9264b7f[/uniqueId] [reportableUrl]https://elm.example.com:9443/ccm/rpt/repository/workitem/iteration/itemId/_8iPSU1pmEeukW7cqqDjAuA[/reportableUrl] [itemType]com.ibm.team.process.Iteration[/itemType] [stateId]__5b1oBlDEe2IRLgNufUBLw[/stateId] [itemId]_8iPSU1pmEeukW7cqqDjAuA[/itemId] [contextId]_8e5qfFpmEeukW7cqqDjAuA[/contextId] [modified]2022-08-11T09:05:35.994+0200[/modified] [name]Sprint 2[/name] [id]Sprint 2[/id] [archived]false[/archived] [startDate]2022-08-21T00:00:00.000+0200[/startDate] [endDate]2022-09-03T00:00:00.000+0200[/endDate] [hasDeliverable]true[/hasDeliverable] [modifiedBy][/modifiedBy] [parent][/parent] [children][/children] [children][/children] [developmentLine][/developmentLine] [iterationType][/iterationType] [/target]</pre> <br>
[allExtensions] [helperId]_QwdCQCUaEe2BF6dMHaDoGw[/helperId] [key]custom.delivery[/key] [type]itemValue[/type] [booleanValue][/booleanValue] [integerValue][/integerValue] [longValue][/longValue] [doubleValue][/doubleValue] [smallStringValue][/smallStringValue] [displayName]CustomDelivery[/displayName] [displayValue][/displayValue] [mediumStringValue][/mediumStringValue] [largeStringValue][/largeStringValue] [timestampValue][/timestampValue] [decimalValue][/decimalValue] [itemValue][/itemValue] [/allExtensions]</pre> Apparently none of the interesting values are available for my custom attribute of type deliverable. So it looks as if that information is not provided, not even the display value, which is empty, whereas for the built in attribute (target) you get all you want. For the string extension, you get more data but it is a way simpler object as well.
Comments
The forum software massacred my answer a bit. e.g. in the second link there is an asterisk missing in the () at the end.
This is the URI selecting only the custom attribute of type deliverable (I messed up the Display Name and the ID...)
https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=240]/(id|summary|target/(name)|allExtensions[key='custom.delivery']/(*))
Using itemExtensions does not provide any more details with respect of attributes. example
https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=240]/(id|summary|target/(name)|itemExtensions/(*))