It's all about the answers!

Ask a question

How to get the ID of a custom section


0
1
Nicola Carusi (281011) | asked Jun 19 '14, 5:21 a.m.

Hi all,

I created a custom template in RQM called "MyTemplate" in which I inserted a custom section called "MySection".

Now I would link to import data in this section using the RQMExcelImporter but I cannot find the dynamic id of the section to configure che cfg file like this:

testcase.Section("myns:com.ibm.rqm.planning.templates.testcase.template_1400236186335","Assumption and constraints")=B

The text in bold is the ID of the template not the section.

Any suggestion?

thanks

Nicola

Accepted answer


permanent link
Ara Masrof (3.2k15) | answered Jun 19 '14, 7:07 a.m.
JAZZ DEVELOPER
Nicola,
If you know the ID of the template in question you can obtain the XML of it which will contain the ID of the customer section
For example. using POSTER (or another HTTP client) you would make the following request
 
https://clm403:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ImporterPA+%28Quality+Management%29/template/testplan/com.ibm.rqm.planning.templates.testplan.template_1379687296446

Where 'clm403:9443' is the HOST/PORT, 'ImporterPA+%28Quality+Management%29' is the project area, and testplan.template_1379687296446 is the template


In the XML returned, you'll see the custom section and ID; something like this

<ns2:section content="" name="MyCustomTPsectionForDemo" id="com.ibm.rqm.planning.editor.section.dynamicSection_1379687368053" description="Created this section for a demo"/>

Ara
Nicola Carusi selected this answer as the correct answer

2 other answers



permanent link
Nicola Carusi (281011) | answered Jun 19 '14, 7:33 a.m.

Hi Ara,

thanks for your answer!

Following your suggestion I get the response "406 Not Acceptable".

If I make a request to

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Import/template

I get the list of all template, but if I follow the url of my template which is:

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Import/template/testcase/com.ibm.rqm.planning.templates.testcase.template_1400236186335

I get that answer! :(

Any idea?

thank you!


permanent link
Nicola Carusi (281011) | answered Jun 19 '14, 7:35 a.m.

Ops!

The error was in the headers.

I put Accept: aplication/rdf+xml but I had to put application/xml.

Now it works! Thank you very much!!

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.