It's all about the answers!

Ask a question

why RTC Reportable REST API is returning null values for creator, owner and other fields of a work item though I can see them through OSLC query result ?


Jayasankar BVR (815) | asked Aug 09 '17, 9:36 p.m.

 I'm using the below Reportable REST

https://jazz...:<port>/jazz/rpt/repository/workitem?fields=workitem/workItem[id=615]/(id|creator|owner ) 

and it gives the below out put 

<?xml version="1.0" encoding="UTF-8" ?>
<workitem rel="next" Version="1.0.0" href="https://jazz..:<port>/jazz/rpt/repository/workitem?id=_SUjNEH1rEeelS75QGuap9A&fields=workitem%2FworkItem%5Bid%3D615%5D%2F%28id%7Ccreator%7Cowner%20%29&size=100&pos=100">
<iron-icon icon="expand-less" less="" style="align-items: center; display: inline-block; fill: currentcolor; height: 24px; justify-content: center; position: relative; stroke: none; vertical-align: middle; width: 24px;"> </iron-icon> <workItem>
<id>
615
</id>
<creator />
<owner />
 </workItem>
</workitem>

If some one can through some light It would be Great.

3 answers



permanent link
Kenji Sarai (96039) | answered Aug 09 '17, 10:21 p.m.

Hi Jayasankar,

Try this
https://<servername>:<port>/ccm/rpt/repository/workitem?fields=workitem/workItem[id=615]/(id|creator/userId|owner/userId)


permanent link
Jayasankar BVR (815) | answered Aug 10 '17, 2:35 a.m.

   Thanks Kenji, it works. I didn't notice that it is of type Iteration. By the way can you also let me know how to search with multiple values. Suppose my requirement is to search for all the work items in multiple releases.


https://jazz...:<port>/jazz/rpt/repository/workitem?fields=workitem/workItem[target/name="1.3.2 - S1","1.3.2 - S2" ]/(id|creator/userId|owner/userId|target/name)

It is not taking this and throwing the error Error 500: CRRED0125E: Invalid value: ,&quot;1.3.2. Expected &quot;and&quot; or &quot;or&quot;


permanent link
Jayasankar BVR (815) | answered Aug 10 '17, 2:41 a.m.

 Got it, This works>>>>>>

workItem[target/name = "1.3.3 - S1" or target/name =  "1.3.3 - S2" or target/name = "1.3.3 - S3" ]/(id|creator/userId|owner/userId|target/name)

Thank you.

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.