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

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

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!

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
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?

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
× 10,938

Question asked: May 13 '15, 6:06 a.m.

Question was seen: 2,685 times

Last updated: May 13 '15, 9:07 p.m.

Confirmation Cancel Confirm