It's all about the answers!

Ask a question

RTC -5.0.2. Want to get Rest API values for all the categories in RTC at a time


Suganya Selvanayagam (131) | asked Oct 25 '16, 2:46 a.m.
 I am using Rational team concert - 5.0.2 version. I am having 100 + category values. I need to get Rest api (filed against value ) for all the categories in RTC at a time. Please help me

One answer



permanent link
Donald Nong (14.5k414) | answered Nov 01 '16, 1:56 a.m.
I'm not sure how you can get all these "at a time". I believe you mean with a single request? The category value is stored as a URI in the work items, and you need to access this URI to get the category name and other information. So I believe some kind of iterations have to be done.

You can use the reportable REST API.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#category_type_com_ibm_team_worki

Or you can use the OSLC API to step through Project Area, Resource Shape till you get to the "allowedValues" of the category (it is a list of URIs mentioned above). The URI looks like this:
https://clm602:9443/ccm/oslc/context/_ftZ1gX57Eea3_ddS3_sNyg/shapes/workitems/defect/property/category/allowedValues

And each category URI looks like this:
https://clm602:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/__VI4Sn57Eea3_ddS3_sNyg

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.