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>