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

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet
You can create an embedded table within a table cell and define a loop for the possible values. See template-items-with-history.docx for embedded tables.

Requirements SRS-123
SRS-124
SRS-125


To have a comma separated list of values in a single table cell like below.

Requirements SRS-123, SRS-124, SRS-125


You can achieve that with a custom velocity template, in CB:/images/newskin/item/icon-document.pngmergefields.vm.

Basically this will render the list of requirements into one string, and that can be referenced in your template.

I made a small example that will list the field names in customChoiceList with a limitation: it will clear all the " characters, that part can still be improved:

#macro(field_item_customchoicelist)
        #set($result = "")
        #set($notfirst = false)
        #foreach($choice in $item.getAsJsonArray("customChoiceList"))
        #if ($notfirst)
                #set($result = $result + ", ")
        #end
        #set($result = $result + $choice.get("name").toString())
        #set($notfirst = true)
        #end
        #set($result = $result.replaceAll('"',""))
        $result
#end