Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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
</id>
<creator />
<owner />
 </workItem>
</workitem>

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

0 votes



3 answers

Permanent link

Hi Jayasankar,

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

0 votes


Permanent link

   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;

0 votes


Permanent link

 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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 09 '17, 9:36 p.m.

Question was seen: 4,519 times

Last updated: Aug 10 '17, 2:41 a.m.

Confirmation Cancel Confirm