It's all about the answers!

Ask a question

How to export requirements in to xml format


Prasad Rachuri (1632) | asked Feb 03 '10, 9:31 a.m.
I have created few requirements and now I want to export these requirements in to a xml format, can any one help me with the procedure to do this. Also can you share any sample xml file.

Thanks in advance,
Prasad R Rachuri

8 answers



permanent link
Patrick Van Zandt (1.2k1) | answered Feb 04 '10, 12:04 a.m.
JAZZ DEVELOPER
I have created few requirements and now I want to export these requirements in to a xml format, can any one help me with the procedure to do this. Also can you share any sample xml file.

Thanks in advance,
Prasad R Rachuri
Are you looking to export requirements from RQM? Or from another tool?
If from RQM, there is currently no feature for this although there are a few related enhancement requests:
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18320&tab=export%20requirement%20xml
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18521&tab=export%20xml

permanent link
Prasad Rachuri (1632) | answered Feb 04 '10, 12:19 a.m.
I have created few requirements and now I want to export these requirements in to a xml format, can any one help me with the procedure to do this. Also can you share any sample xml file.

Thanks in advance,
Prasad R Rachuri
Are you looking to export requirements from RQM? Or from another tool?
If from RQM, there is currently no feature for this although there are a few related enhancement requests:
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18320&tab=export%20requirement%20xml
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18521&tab=export%20xml

Hello Patrick,
I was going thru some posted topics in Jazz and found there is a add-on toll called "Poster" available for Firefox. I have used this tool also, but it doesn't give me "xml" output when I use "GET" method. Do you have any idea how to use this add on tool.

permanent link
Nicolas Constans (22723) | answered Feb 23 '10, 5:34 a.m.
JAZZ DEVELOPER
I have created few requirements and now I want to export these requirements in to a xml format, can any one help me with the procedure to do this. Also can you share any sample xml file.

Thanks in advance,
Prasad R Rachuri
Are you looking to export requirements from RQM? Or from another tool?
If from RQM, there is currently no feature for this although there are a few related enhancement requests:
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18320&tab=export%20requirement%20xml
- https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=18521&tab=export%20xml

Hello Patrick,
I was going thru some posted topics in Jazz and found there is a add-on toll called "Poster" available for Firefox. I have used this tool also, but it doesn't give me "xml" output when I use "GET" method. Do you have any idea how to use this add on tool.

Hi Prasad,

make sure to perform a GET on the URL of the requirement you want to retrieve.

To know the URL of the requirement's XML description, please refer to the requirement feed provided by your RQM server.
This feed should be accessible at https://<server_IP>:9443//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project_area_ID>/requirement

For each requirement, the feed provides a link to its XML description, and a link to access it through the RQM GUI. A GET on the URL to the XML description will allow you to retrieve the requirement's contents as XML.

I hope this helps,

-Nicolas

permanent link
Michael Amirault (46) | answered Feb 23 '10, 8:59 a.m.
Hi Prasad,

While using poster click over to the headers tab and under the name field type "accept" and in the value field type "text/xml" and click the add/change button. This tells poster to show the xml for the data that you are getting rather than non-sensical javascript or html.

permanent link
Yaqian Fang (2013223) | answered Apr 14 '10, 1:57 a.m.
I'm able to retrieve requirement XML file, however, it seems only having Overview page information, doesn't include information in Links or Approval page. Does any one know if there is a way to display info. in Links and Approval page in the requirement XML file?

permanent link
SimonP T (7676) | answered Apr 14 '10, 8:36 a.m.
I'm able to retrieve requirement XML file, however, it seems only having Overview page information, doesn't include information in Links or Approval page. Does any one know if there is a way to display info. in Links and Approval page in the requirement XML file?


Hi,

If you want to see the full unabridged feed for Requirements in XML format you can add the following:

https://<server_IP>:9443//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/requirement/?abbreviate=false

There is something about this in http://jazz.net/wiki/bin/view/Main/RqmApi in the section Fully Populated URL

I have found that this, however, is limited to a subset of Requirements i.e.: not all are listed beyond a certain point. Depending on how much automation you're trying to do with this process, if may be better to use a customised Report based on Requirements, exported to Excel.

Regards, Simon

permanent link
Yaqian Fang (2013223) | answered Apr 14 '10, 7:12 p.m.
Hi Simon,

I tried what you suggested, but the result xml files with and without ?abbreviate=false were exactly the same. Approval information were available, but nothing from the Links page, which I have Related requirements links. Not sure if it's a limitation or something else I missed.

I'm able to retrieve requirement XML file, however, it seems only having Overview page information, doesn't include information in Links or Approval page. Does any one know if there is a way to display info. in Links and Approval page in the requirement XML file?


Hi,

If you want to see the full unabridged feed for Requirements in XML format you can add the following:

https://<server_IP>:9443//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/requirement/?abbreviate=false

There is something about this in http://jazz.net/wiki/bin/view/Main/RqmApi in the section Fully Populated URL

I have found that this, however, is limited to a subset of Requirements i.e.: not all are listed beyond a certain point. Depending on how much automation you're trying to do with this process, if may be better to use a customised Report based on Requirements, exported to Excel.

Regards, Simon

permanent link
SimonP T (7676) | answered Apr 19 '10, 5:47 a.m.
Hi Yfang,

To be clear, the ?abbreviate=false extension only works on the complete feed, and not on an individual item e.g.:

1. /requirement/?abbreviate=false returns the full XML for a page of requirements

2. /requirement/?abbreviate=false has no effect

Not sure what the end purpose of the export is for anyone on this thread. Just letting you know what the feedURL syntax is.

Regards, Simon


Hi Simon,

I tried what you suggested, but the result xml files with and without ?abbreviate=false were exactly the same. Approval information were available, but nothing from the Links page, which I have Related requirements links. Not sure if it's a limitation or something else I missed.

I'm able to retrieve requirement XML file, however, it seems only having Overview page information, doesn't include information in Links or Approval page. Does any one know if there is a way to display info. in Links and Approval page in the requirement XML file?


Hi,

If you want to see the full unabridged feed for Requirements in XML format you can add the following:

https://<server_IP>:9443//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/requirement/?abbreviate=false

There is something about this in http://jazz.net/wiki/bin/view/Main/RqmApi in the section Fully Populated URL

I have found that this, however, is limited to a subset of Requirements i.e.: not all are listed beyond a certain point. Depending on how much automation you're trying to do with this process, if may be better to use a customised Report based on Requirements, exported to Excel.

Regards, Simon

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.