How to get RTC workitems links using RPT api
Hello,
I am using below api to get rtc workitems links:
In some of the links I am getting the uri and for some links uri is missing.
Eg:
----------------------
<auditableLinks>
<sourceRef>
<helperId>XXXXXXXXXXX</helperId>
<uri/>
<referenceType/>
<comment>23: TEST/comment>
<extraInfo/>
<contentType/>
<referencedItem/>
<uniqueId/>
</sourceRef>
<targetRef>
<comment>TEST:XXXXX</comment>
</targetRef>
</auditableLinks>
--------------------------------------
Please suggest what I am missing.
One answer
The request is incorrect and missing two brackets. AFAIK the query would look like:
https://elmratelimha11.fyre.ibm.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=10]/(parent/()|children/()|auditableLinks/(sourceRef/(uri|referencedItem/())|targetRef/(uri|referencedItem/())))</pre> <div> There are * in the brackets(). <br> <br> I assume not everything has a URI or the query is still incorrect. </div>
Comments
I tried with above query but same problem.
I would like to know how to get workitems links uri.
I am getting comments but uri is missing.
Please suggest.
I get some URI's using
I do not get URI's for everything. I have spent the time I can on this answer. Maybe someone else can come up with more. I can't.