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 ?
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
<creator />
<owner />
If some one can through some light It would be Great.
|
3 answers
Hi Jayasankar,
|
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: ,"1.3.2. Expected "and" or "or"
|
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
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.