Rendering Table Fields of Trackers
Columns of table fields can be accessed by their index starting from zero:
• item.tableName.col0
• item.tableName.col1
• item.tableName.col2
From Codebeamer version 20.11, columns can be accessed by label as well.
Labels are expected in a camel-case format. For more information, see the previous explanation
Available merge fields
Table column names can be verified on Swagger API using following URL. In the result, search legacyRestName
/api/v3/trackers/<trackerId>/fields/<fieldId>
In test management, the custom test step fields (columns) can be accessed similarly. For example, item.testSteps.action, item.testSteps.expectedResult, and item.testSteps.customColumn
These merge fields must be inside a bookmark called loop_item_tableName, which will iterate through the rows of the table.
For an example of a built-in default Test Case template with a table called testSteps, see
template-test-cases-base.docx
For an example custom test step fields, see
template-test-cases-custom-cols.docx
Another example of a table called customTable:
| For table fields to work in Word export, the Row numbers option must be selected on the table field in the tracker configuration. |