You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet
Assume following scenario: you want that Resolved or Closed items should not appear in the Word export.

One solution is to use a Tracker View which contains only those items you want, but sometimes this is not practical.

Alternatively you can filter the exported items from the Word temlate. The attached template file contains a small script at the beginning (easy to find as it is red text) which filters out the Resolved and Closed items.

What is happening here that the red script is iterating through the ${items} collection. This is the collection which contains all Work items being exported. Then this script removes the Resolved/Closed items, so these won't appear in the result.

The script is:

## Don’t render resolved or closed items, so filter them out
## the items collection
#set($itemIterator = ${items.iterator()})
#foreach ($item in $itemIterator)
    #if ($item.isResolvedOrClosed())#set($dummy=${itemIterator.remove()}) #* removing resolved/closed items *# #end
#end