#set($questions = $teamprogress.json.by_question.buckets) #set($plans = $teamprogress.json.by_testplan.buckets) #foreach($plan in $plans) #set($testplan = $testbench.getTestPlan($plan.key)) #if($testplan) #set($questions = $plan.by_question.buckets)

$testplan

#foreach($q in $questions) #set($total = $q.doc_count) #set($question = $testbench.getQuestion($q.key)) #if($question) #end #end
Question Total Breakdown
$testbench.clean($question.getText(), 140) $total #set($responses = $q.by_response.buckets) #if($responses && $responses.size() > 0) #foreach($r in $responses) #set($respObj = $question.getResponse($r.key)) #set($rcount = $r.doc_count) #set($v = $mathtool.div($rcount, $total)) #set($pct = $testbench.getRoundedPercentage($v, 1))
$testbench.clean($respObj.getText(), 120)
$rcount ($pct%)
#end #else No responses #end
#end #end