In RRC 4.05 or above, how do I copy/duplicate an artifact from one project area to another?
2 answers
I don't think you can simply copy artifacts across project areas because that will require the artifact/attribute/data types are exactly the same in these project areas. In other words, the artifact/attribute/data types have to be common, which is not the case in RRC.
But you can extract the artifacts to CSV files and import them into another project area to achieve the same goal. You have to make sure the necessary artifact/attribute/data types are already defined in the target project area though. You can see below documents for details about exporting/importing CSV files in RRC.
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/topic/com.ibm.rational.rrm.help.doc/topics/c_export_csv.html
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/topic/com.ibm.rational.rrm.help.doc/topics/c_import_csv.html
Comments
Hi Davyd,
Importing ReqIF into an empty project area is quite straightforward and it's an easy way to build up the type system. But if the target project area already has its own type system, we have to be very careful with importing ReqIF since the type name can be duplicated.
Oh :-(
That's a bit nasty - thanks for that info Don. I have seen it duplicate attributes on import but I didn't know that the ReqIF import was that simplistic.
Is there any enhancement in place to add some smarts to this so that it will let you at least map to existing types and attributes?
I'm not aware of such enhancement. Such mapping has to be by hand and it will become tedious if there are many attributes to map. CSV import is a safer option here.
Currently, RRC/DNG is designed to only merge system-defined types.
Important: The first time that you import, types and artifacts are created. If you import the same data later, all of the data except for the view column information is updated. During an import, only system-defined attributes and types are merged. Artifact types, attributes, data types, and folders that were not already imported from a ReqIF file are created in the project that you are importing to. For example, the file that you are importing and the project that you are importing to might both contain a Priority attribute. In that case, an attribute named Priority2 is created during the import.