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

How to get the ID of a custom section

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

1

0 votes


Accepted answer

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

1 vote


2 other answers

Permanent link

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!

0 votes


Permanent link

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!!

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

Question asked: Jun 19 '14, 5:21 a.m.

Question was seen: 4,745 times

Last updated: Jun 19 '14, 7:35 a.m.

Confirmation Cancel Confirm