It's all about the answers!

Ask a question

How to get a category type custom attribute through Reportable Rest url query?


Liney Reis (136) | asked Jun 10 '16, 1:52 p.m.
Hi,

I´m trying to retrieve a "category" type custom attribute value through Reportable Rest url query.

The url i´m using: https://server:9443/ccm/rpt/repository/workitem?fields=workItem/workItem[id=number]/(*/(*))

The result shows no value for the attribute I´m trying to get (only for the "file against" atribute), so I´m wondering if the Reportable Rest API is able to retrieve custom attributes values of "category" type.

Are there any other way to get this?

One answer



permanent link
Subramanya Prasad Pilar (4.4k14) | answered Jun 12 '16, 2:38 p.m.
You can try https://server:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=number]/(*|allExtensions/(key|displayValue/*/*))

To get full list of category, you can use the URL
https://server:9443/ccm/rpt/repository/workitem?fields=workitem/category[projectArea/name="JKE Banking (Change Management)"]/*
or
https://server:9443/ccm/rpt/repository/workitem?fields=workitem/category[projectArea/itemId="_tNGM8IPsEeSNXIoymcU8qg"]/*

Note that fields=workitem/workItem/category specifies the categories for existing work items only.

Your answer


Register or to post your answer.