It's all about the answers!

Ask a question

Can custom contributor fields be reported on using the REST API?


Michael Alberda (2311648) | asked Jun 13 '17, 4:23 a.m.

Good Day,

I have a customer that is trying to extract certain custom fields using the rest API. However, the custom contributor fields do not seem to get populated.It just shows an empty <displayValue/> even though it is populated on the work item. We  seem to get results with other custom attributes and it seems to be isolated to the contributor type.

Is this expected behavior?

Thanks,
Kind Regards,
Michael Alberda



Comments
Ralph Schoon commented Jun 13 '17, 4:55 a.m. | edited Jun 13 '17, 5:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Versions? Which REST API you use (in case there are several)? Some example data you see? See How should I ask a question in the Forum if I want to receive useful answers?


One answer could be that the data warehouse is limited in what it stores e.g. attributes for complex items like contributors are not necessarily available in the data warehouse.

It is also better to let the user ask, that actually have the data, instead of having a proxy asking.


One answer



permanent link
Donald Nong (14.5k614) | answered Jun 14 '17, 2:48 a.m.

You are using the reportable REST API.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#allExtensions_type_com_ibm_team

If you check the allExtensions element, you can see that it does not include the Contributor type values. So what you observed is expected.

I don't know the reason Contributor got excluded. If you think it is necessary to include it, you can submit an RFE.

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.