How to — List of Values in One Table Cell
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, use the custom velocity template in
mergefields.vmRequirements | SRS-123, SRS-124, SRS-125 |
This will render the list of requirements into one string and can be referenced in your template.
#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