Advanced Word Export #11295482/HEAD / v3911 |
Advanced Word ExportCodebeamer (Betty) introduced a new, advanced document export functionality, which gives template developers access to Codebeamer tracker data with the help of cbQL queries. While existing templates continue to work, the new functionality makes it possible to create complex documents from multiple from across multiple trackers. Table of Contents
Basic functionalityTemplates can now include cbQL queries at the parameters section of which results can be referenced and iterated through using bookmark loops. To do that, you need to:
This will result in listing the {attribute} attribute of all the resulting items of {queryName} query.
Multiple, Interdependent QueriesIn case of multiple queries, they need to reference each other and thus be built in a tree of queries, similarly to the multi-level filtering of the Traceability Browser. Once you defined your queries as per the Query parameters table below, you can embed bookmark loops iterating through the results of the related query in other bookmark loops. To do that, the inner loop needs to reference the external loops as well. You can do that in the following way:
Context-Dependent TemplatesFor context dependent exports, templates can also refer to the items selected on the UI for export as if they were queried by cbQL.
To do that, queries need to be created that are set to depend on a special initial level named item, as per the following example: <<query.epic.dependson>> = item
Respectively, the results of a similar query can be referred to as follows: <<item.epic.id>>d
The main concept is to use the term item as initial level, instead of the actual initial level. The Initial level table is unnecessary in the template parameters, and the Depends on value of the first level must refer to it as item.
The bookmarks should also refer to this level as item.
Template example: template-context-dependent.docx Example: context-dependent-example.docx Tracker Item as a Template Configuration ParameterTo make templates more reusable, template developers can also reference an additional tracker item (independent from the items the export was started for) that users can select on the UI dialog when starting the export. The information in the optional tracker item can be used to provide additional parameters for the template. As an example, a template can be created, which exports selected tasks and their related requirements that were present in a certain release. In this case, the task items can be selected by the UI through any of the tracker views, while the containing release can be provided through the optional parameter field of the export dialog.
The field values of the selected tracker item can be accessed as: ${fieldname} (e.g. ${id} ) Limitation: item field values can be used only in "query.queryName.cbql" template parameters. Query ParametersThe following parameters can be used to fine-tune the queries of a template.
Template ParametersTable RenderingWhen rendering nested loops inside one common table then following option must be checked. If not, then root items with empty nested loop (e.g. without next level reference) will completely disappear from the resulting table. checkbox.table.keep.empty.rows
Table cell merge can be switched on and off by below template parameter. Default is off to keep existing behavior. checkbox.table.merge.cells
See example: template-traceability-tbl-linear.docx Ignore Tracker Outline-Related FormattingIf the exported tracker supports the outline (parent-child relationship) functionality, the hierarchical position of an item influences the formatting of the corresponding part of the exported word file. For example: each child items will be rendered with a lower level heading to visualize the connection to its parent. This functionality can be confusing while using multiple queries in the same word file, so we have introduced a checkbox type parameter to turn this off: checkbox.ignore.outline
Example template snippet: ignore_outline_snippet.docx ExamplesLimitations
Impact on Previously Created TemplatesAll templates supported by Codebeamer 10.1 continue to work, however the following functionality changes affect their behavior:
|
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.
Note that user-behavior analytics are being captured on this server for the purpose of improving the Codebeamer user experience.