It's all about the answers!

Ask a question

Is it possible to GET the value of a custom attribute of a TER via REST API?


Jochen Staack (551120) | asked May 13 '15, 6:06 a.m.
Hi,

we are trying to get the value of a custom attribute of a TER via the REST API.
It seems that the XML answer is not containing any of our defined custom attributes (we defined them under ProjectProperties --> Custom Attributes --> Test Case Result Attributes Help .

Is it possible to somehow get the values that are set for those custom attributes?

Thanks!

Accepted answer


permanent link
Don Yang (7.7k21109138) | answered May 13 '15, 9:07 p.m.
If I try with the below REST API:
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM1/executionresult/urn:com.ibm.rqm:executionresult:63

(RQM1 is the project area and 63 is the TER id), I do see the custom attribute returned in XML:

<ns2:customAttributes><ns2:customAttribute required="false" type="SMALL_STRING"><ns2:identifier>TC_Result</ns2:identifier><ns2:name>TC Result</ns2:name><ns2:value>REST API</ns2:value></ns2:customAttribute></ns2:customAttributes>

Here, TC Result is the custom attribute name and its value is REST API
Jochen Staack selected this answer as the correct answer

One other answer



permanent link
Brian Fleming (1.6k11928) | answered May 13 '15, 3:07 p.m.
Yes, custom attributes are in the responses returned by the REST API.  What REST call are you using?  Does the execution result you are querying for have values populated in the custom attributes?

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.