User's Guide > About the User's Guide > Word and Excel Templates > Word Templates in CB 7.2 - 9.2 > List of Objects/Entities Available in the Export Scripts
List of Objects/Entities Available in the Export Scripts
This table lists the objects available in the Velocity/Groovy scripts above:
variable name
type
description
baseline
com.intland.codebeamer.persistence.util.Baseline
The current baseline object if any (can be null)
request
HttpServletRequest
The http request being processed
user
com.intland.codebeamer.persistence.dto.UserDto
The requesting Codebeamer user
currentDate
java.util.Date
Current date-timestamp
project
com.intland.codebeamer.persistence.dto.ProjectDto
The current project where the tracker being exported is
requirementTracker
com.intland.codebeamer.persistence.dto.TrackerDto
The requirement tracker
tracker
com.intland.codebeamer.persistence.dto.TrackerDto
The requirement tracker (same as requirementTracker)
requirements
SortedMap<ReleaseId,TrackerItemDto>
requirements as TrackerItemDtos grouped by release-ids
items
Collection<TrackerItemDto>
The exported Word items collection. Available since CB7.9: allows export script to filter Work Items:
issueReferences
com.intland.codebeamer.controller.importexport.IssueReferencesBuilder
Class to fetch downstream and upstream references of an issue Use getIncomingReferences() and getOutgoingRefrences() methods to fetch the downstream/upstream references of an issue
incomingAssocationsByIssue, outgoingAssociationsByIssue
Map<Integer, Map<String, List<IdentifiableDto>>>
Map contains for each requirement's id the downstream or upstream associations from/to that requirement. Important: these are not the referenced issues via reference fields, but the associations between other issues in the system.
exporter
com.intland.codebeamer.controller.importexport.DocxRoundtripExporter
The Docx exporter class. Added for including an HTML description of the issues or other kind of DescribableDtos using the exporter.renderAsMhtml(describable) method
urlLink
String
The context-relative url of the current entity (Work item). Use this instead of {No variable {describable.urlLink defined. if you want a link which keeps baseline and version information: the link will open the same version/baselined version which was originally exported.
interwikiLink
String
The interwiki-link of the current entity (Work item). Use this instead of {No variable {describable.interwikiLink defined. if you want a link which keeps baseline and version information: the link will open the same version/baselined version which was originally exported.
fields
com.intland.codebeamer.text.excel.FieldAccessor
Use {No variable fields.getByLabel($entity, "Description") defined.} to access value of any field on the current entity by its label. Available from CB 7.10+
Was this helpful?