Excel Round-trip and Excel import #587723/HEAD / v7220 |
Excel Round-Trip and Excel ImportTable of Contents
OverviewWith Excel Round-trip editing of Requirements (or other kinds of issues like Tasks / Bugs etc.) in Codebeamer users can:
Round-Trip WorkflowExporting Work ItemsExporting issues from Codebeamer to Round-trip Excel documents starts with navigating to the tracker which contains the issues to be exported. Within the tracker choose the "Export to Office" action in the "more" menu.
You can:
When the Excel export is selected Codebeamer will build an Excel document which contains the issues displayed by the current view and the download of that Excel document will start in few seconds automatically. The generated file name will contain the current project's and tracker's name, so it is easier to identify later where that export file is originated from. Content of the ExportWhen exporting to Round-trip only those issues/requirements will be exported which match the active view in that tracker. The active view determines two important things:
So you can easily control which issues are exported by defining a new Tracker view or choosing an existing view that matches your needs. You can also create custom views to control the rows and columns being exported, see here: Tracker Views The ID ColumnRegardless of what the view mandates the round-trip Excel export will always contain an ID column as 1st column in the Excel export. This contains the numeric unique id of the item being exported, which is then used to identify the target items when importing the data back. This ID column also contains a link pointing back to Codebeamer, and by clicking on that link will open the relate item in a web browser. This makes very easy to find the exported items from Excel later. Exporting the Description of the ItemsThe Description of the issues/requirements is not included by default in an Excel export, because this field usually contains a long description of the problem, requirement which hardly fits to an Excel cell (Excel has serious limitations what a cell can contain, like it cannot display a real rich content in a cell, and a cell can contain only up to 32000 characters). However because usually the Description of an item contains the most information about the subject you have the option to export this to the Excel field, by turning on the "Export description" checkbox on the Excel export dialog. For limitations of exporting Description see: Field Length limitation section below Editing Data in the Round-Trip ExcelYou can edit the data in the Excel sheet, and import back your changes later, which will update the original items in Codebeamer. This is the so called round-trip workflow. During the export the data is formatted in the Excel sheet so that editing should be easy. However due to some limitations and differences between Excel and Codebeamer's data format you will need to understand how the data looks like and can be edited in Excel. The following section describes this. Editing Various Field TypesThe export formats for various field types are: Text FieldsSimplest text field is exported as-is to Excel Date FieldsDates exported as native excel dates in cell, and also imported from native date cells. The importer can also import a date from a "string" formatted cell too, the date-format is configurable on the importer GUI. Number FieldsThe number and integer fields are exported as number/integer cells to Excel. Also a cell constraint forces that only the appropriate double/integer numbers can be entered in cells. Boolean FieldsThe exporter exports Boolean fields as a drop-down with "true" and "false" as possible values. ChoiceThe exporter will export the current value as the choice's text, and accepts only the possible values in the Excel document by using a drop-drown control. Multi-Value Choice Fields and Other Multi-Value FieldsMulti-value choice fields and can be imported using various import data formats. See this detailed guide Table FieldsTable fields are exported to Excel tables in a way that every table row becomes a new row in the Excel sheet. The importer can also nicely import back such structured Excel files. For example Test Cases are exported together with their Test Steps, and that can be edited and imported back to Codebeamer. See the Importing and round-trip editing of TestCases with TestSteps in Excel which shows you examples and explanation how the Tables are handled in roundtrip and especially for Test Cases' Steps. User or Member FieldsThe exporter exports the users and roles as simple list like "bond,[Developer]". The users are exported as their account names, the roles are exported as "[<role-name>]" text, multi-values are separated by "," character. When importing this field back the importer will recognize the same format, the roles are looked up in the same project where the target tracker is. Reference FieldsReference fields are exported like this:
Modifying references in Excel is possible:
Wiki Text FieldsWiki fields are exported using their wiki source, as Excel cannot represent them otherwise for example as rich text in cells. See: Why my wiki is exported as wiki source Field Length LimitationBecause an Excel cell cannot contain more than 32000 characters the Excel round trip exports long data specially, that is:
An example: When trying to import such Excel data the importer will automatically recognize truncated cells, and will ignore it, so truncated data will not overwrite the full data in any case. The following screenshot shows how this appears on the import UI: Read-Only FieldsSome fields are not editable in Codebeamer, for example editing the "Submitted At" field is pointless because this field always contains the date when the issue is created. Therefore when exporting a "Submitted At" field using round trip the Excel cell will be read-only. Adding New Items Using ExcelYou can easily add new items in Excel by simply adding a new row. The ID field/column of the new data must be left empty, but all other fields can get values. During the import such new rows will appear, and marked by a [NEW] badge. The following screenshot shows how this looks like in Excel and then during import: Importing Round Trip Changes Back from ExcelImporting changed values from an Excel round trip document is simply initiated by the usual import functionality of the Trackers. The round trip data is recognized by the "ID" column of Excel, and the matching item/requirement/bug/etc. will be updated. For more details about simple import to Excel see documentation: Importing Data from Excel to CodeBeamer So as first find the "Import" menu from the more menu of Trackers:
Choose that and the import wizard starts. Upload the modified round trip Excel file, and choose Excel format if necessary. On the next page of the wizard you should see that the mapping of the Excel columns and the Codebeamer fields are automatically mapped for you. Automatic Mappings of FieldsThe automatic mapping should be fine in most cases, but sometimes you may want to adjust mappings, for example you can ignore a column by removing its mapping, or forward data to some other fields by changing its mappings. The most important field in round-trip is the "ID" field, because without the proper mapping of the "ID" field the original item/issue cannot be found, and therefore the data will be (mis-)recognized as NEW and will create a new record. Tip: if you want to add all Excel data to a new tracker then just clear the mapping of the "ID" field/column and the data will be inserted as new The result of automatic mapping can be reconfigured by clicking on the mapping selectors above each column. You can also map a column to multiple field - turn this on by clicking on the "Multiple field mappings" checkbox- this may be useful if you want to load the same data to multiple fields.
Warning when Automatic Mapping Maps a Field TwiceSometimes automatic mapping cannot decide properly and maps a field twice. The importer will show a warning when this happens: the user can correct this situation manually:
Final Step: Review Changes and DifferencesThe last page of the import wizard displays the data found in the Excel sheet after the mapping and conversions:
Error HandlingEven a carefully configured mapping may fail when saving the data into the desired Tracker, and saving may throw an exception. In such cases:
To resolve this issue, you can either go back to your Excel sheet and correct all data where the save have failed, or you can use a custom conversion script inside the import wizard. A typical scenario for such errors happening is when you change the Status of many items in Excel, however your Tracker's workflow may forbid the transition from the original Status to the new Status. Such errors can be resolved by either removing the mapping of the Status field, or use a Status value that is possible. Exporting and Importing Work Item Parent-Child HierarchiesThe Excel round-trip export and Excel import supports exporting and importing work-items which are parents or children of each other. When exporting such items the Excel round-trip export will automatically add the indentation to the parent/child items' "Summary" (Name) column. This screenshot shows how such a hierarchy appears in the Excel export file:
As can be seen the "Summary" column will contain indentations which visually represent the parent-child hierarchy of the exported Work Items. When importing back the same structure from Excel then the importer will rebuild the same parent-child hierarchy. This is especially useful if you want to import the data as new Work Items to a different tracker. See also: How the Excel import handles hierarchies, and How to export Work Item hierarchies using custom Excel templates Multi-Language Support in Excel Round TripWhen exporting issues you may notice that the Priority, Status and other similar choice fields and also roles of user fields are exported in German language. This also affects the possible values of choice fields, the selection contains your local language (if translations are available). This screenshot shows an example: Also the round trip importer will take care of this difference, for example it will recognize the German Priority values in the Excel sheet and import them correctly. However the importer can only translate back the German text found in the Excel sheet if your language also is set to the same language as the export was done, i.e. the German/Deutsch in the browser ! In order to help to recognize such situation when the export was performed in different language than the import the Excel round trip has a built in mechanism to detect that. The importer will show this warning message in this situation, then the solution is to change the language of the import to the same as the export was performed: Known Limitations and Issues
Frequently Asked Questions: My Wiki Looks Corrupted when Exporting to ExcelIf you have a wiki text in Codebeamer like the "Description" of the issues/tickets an export these to Excel then what you will see in Excel is the plain wiki text instead of nicely formatted rich text like bold/colors/fonts/images etc. Why? This is simply because Excel has a very limited rich-text capabilities for formatting in Excel cells. It can do some formatting like boldness or colored text, but that is far from supporting complete capabilities of the HTML rendering that we use when we render the wiki to a web page. Therefore it is technically impossible to properly export a wiki/HTML to Excel which looks nice and "same" to what you see inside Codebeamer. So we just decide to export the wiki source to Excel: which can be nicely imported back from Excel in a round-trip scenario. If we would try to "downgrade" the wiki/HTML to the capabilities of the Excel then this would result in corrupting the wiki/HTML data when you import this text back to Codebeamer. That's why it is recommended to use Word for exporting/importing wiki/HTML which contains lots of rich text or heavy formatting instead of Excel. Word's internal markup capabilities are "close" to the capabilities of HTML, therefore, the round-trip works there. Frequently Asked Questions
Configuring Excel Export Default SettingsYou can configure Excel export's default behavior on the Application Configuration page by adding this section: "excelExport": { "exportMultiValuesToMultiRows": "true", "addDescriptionToExcelExport": "false", "exportDatesAsUserFormattedStrings": "false" }
These settings control the default export options appearing on the UI: they can be altered individually during the exports:
Round Trip Editing Test Cases in Excel and Importing or Exporting Test Cases from Excel or WordSee this wiki page for details: Importing and round-trip editing of TestCases with TestSteps in Excel |
Fast Links
codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.