It's all about the answers!

Ask a question

Accessing workitem field value with Reportable Rest API


Pavan A (133) | asked Mar 02 '22, 4:01 a.m.

 Hi,


I am looking to access RTC workitems and data using Reportable Rest API.

Calling
gets me a list of WorkItem Ids

I am checking by calling the APIs from a browser that has Jazz logged in to, on another tab.

But with call to
I expected to get the summary field value of the WorkItem 72616
But am getting

Could you please help correct the above, or share the next step
that would get the actual field values.

Regards
-Pavan

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Mar 02 '22, 4:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 As far as I am aware you select the items using the query e.g. 


For the item type you have selected (work item), this item type has common built in attributes. You select to output them using ().

E.g. https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem/(id | summary) returns all work items with their id and summary. There are more complex elements supported. e.g. approvalDescriptors. You can select them for the work item and return the value by a nested 
statement. E.g.

https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem/(id|summary|approvalDescriptors/(id)) would show the work item id, summary and the ID for all approval descriptors.

Ralph Schoon selected this answer as the correct answer

Comments
Ralph Schoon commented Mar 02 '22, 4:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I just published this post with some examples: https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ 


Pavan A commented Mar 02 '22, 6:29 a.m.

 Hi Ralph,


Thanks for the quick response.
With the help of these details, I have got individual workitem details using the below URL format

This has fetched the field values of an individual Id.

Regards

-Pavan

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.