It's all about the answers!

Ask a question

Is it possible to return the "Related Artifacts" via the Reportable REST API?


0
1
Adam Wereszczynski (9281932) | asked May 09 '13, 3:05 a.m.
Is it possible to return the "Related Artifacts" via the reportable REST API?

I have a query of the form

https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id='304366']/(id|summary|related/(id|summary|related/(id/type/name)|type/name)|children/(id|summary|related)|type/(id|name))

This only gives the related work items but not all the related artifacts.

Accepted answer


permanent link
Krzysztof Ka┼║mierczyk (7.3k34391) | answered May 09 '13, 3:09 a.m.
Hi Adam,
I have tried running following query on my machine:
https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id='24']/*/*/*
and there is no relatedArtifacts field there.
Also jazz.net wiki says nothing about that: https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#workitem
You can try using RQM API to check if it is possible from there: https://jazz.net/wiki/bin/view/Main/RqmApi
Adam Wereszczynski selected this answer as the correct answer

One other answer



permanent link
Krzysztof Ka┼║mierczyk (7.3k34391) | answered May 09 '13, 3:19 a.m.
Alternatively you can also use json query:
https://localhost:9443/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItemDTO2?includeHistory=false&id=24

Your answer


Register or to post your answer.