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

Is there a way to use OSLC to retrieve custom properties of a test or TCER or TCER result?

When a RTC defect is linked to a test case, the CCM OSLC query returns the linked test case as shown below:

<oslc_cm:relatedTestCase rdf:resource="https://myCLMserver/qm/oslc_qm/contexts/_LcZ8IUMeEeScN8VySypHig/resources/com.ibm.rqm.planning.VersionedTestCase/_29Ek73NnEeS4P9VZR0arew"/>

However, when I do a GET using this OSLC link to retrieve the QM test case, no custom properties of the test case are returned in the result.

After digging a little, it looks like that if I do a REST call such the following (note: I have to know the QM PA name and the test case ID), I am able to retrieve the custom properties:

"https://<myCLMserver>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM50_UAT_PA/testcase/urn:com.ibm.rqm:testcase:29"

I don't want to have to traverse the OSLC to find the test case ID and PA name in order to issue the REST call.  I need to be able to issue an OSLC call to get the QM test case custom properties.  Is this possible?  If so, can you provide an example of the OSLC syntax?


0 votes


Accepted answer

Permanent link
I'm afraid you have to. The RDF presentations generated by the OSLC API and the reportable REST API use quite different name spaces. The custom property is defined as "qm:customAttributes" in "http://jazz.net/xmlns/alm/qm/v0.1/". None of the name spaces in the OSLC presentation has something similar.
Gary Dang selected this answer as the correct answer

0 votes


2 other answers

Permanent link
thanks Donald.  Can you also confirm the behavior below is also due to OSLC limitation?

I am trying to use OSLC to retrieve RTC workitems of a specific work item type (defect) and certain status using the dcterms:type and oslc_cm:status (note: I don't want to use rtc_cm:state).               
                                                                       
For example, regarding defect type, I can do this.                     
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=rtc_cm:type="com.acn.adt3.workitem.workitemtype.defect"&oslc.
select=dcterms:created,dcterms:title,dcterms:type                      
                                                                       
but I can't do this (get 400 bad request error)..                      
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=dcterms:type="ADT Defect""&oslc.select=dcterms:created,     
dcterms:title,dcterms:type                                             
                                                                       
Regarding status, I can do this (get 400 bad request error)            
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=rtc_cm:state="com.acn.adt3.workflow.defect.state.s1"&oslc.  
select=dcterms:created,dcterms:title,dcterms:type                      
                                                                       
but not do this..                                                      
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=oslc_cm:status="New"&oslc.select=dcterms:created,dcterms:   
title,dcterms:type   

0 votes


Permanent link
thanks Donald.  Can you also confirm the behavior below is also due to OSLC limitation?

I am trying to use OSLC to retrieve RTC workitems of a specific work item type (defect) and certain status using the dcterms:type and oslc_cm:status (note: I don't want to use rtc_cm:state).               
                                                                       
For example, regarding defect type, I can do this.                     
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=rtc_cm:type="com.acn.adt3.workitem.workitemtype.defect"&oslc.
select=dcterms:created,dcterms:title,dcterms:type                      
                                                                       
but I can't do this (get 400 bad request error)..                      
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=dcterms:type="ADT Defect""&oslc.select=dcterms:created,     
dcterms:title,dcterms:type                                             
                                                                       
Regarding status, I can do this (get 400 bad request error)            
                                                                       
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=rtc_cm:state="com.acn.adt3.workflow.defect.state.s1"&oslc.  
select=dcterms:created,dcterms:title,dcterms:type                      
                                                                       
but not do this..                                                      
https://<server>/ccm/oslc/contexts/_kyDzEELtEeSORJDfpY2W9w/workitems?  
oslc.where=oslc_cm:status="New"&oslc.select=dcterms:created,dcterms:   
title,dcterms:type   

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,952

Question asked: May 06 '15, 2:55 p.m.

Question was seen: 4,761 times

Last updated: May 12 '15, 1:44 a.m.

Confirmation Cancel Confirm