my task is to create charts and metrics for reports in Polarion. I want to create a chart which shows all epics divided by status:

Polarion Example.png (17.09 KiB) Viewed 1384 times

Explanation of example: Look at the 26.02.2017. At this point there exist approximately 360 epics. Approximately 160 are in status "accepted", 90 are in status "ready for review", 10 are in status "to clarify" and so on.

This works with the values of Polarion, but not with the informations about work items' status. I tried to change the code to:#highchartStart("Epics" "" 400 400)#set($numberOfProposed = $trackerService.dataService.getInstancesCount("WorkItem=programepic", "status:proposed"))#set($numberOfToClarify = $trackerService.dataService.getInstancesCount("WorkItem=programepic", "severity:critical"))#addHighchartPieDataSet("Count" "'To Clarify',$numberOfToClarify : 'Proposed',$numberOfProposed")#highchartEnd()

The result is:

Pie chart.png (4.14 KiB) Viewed 1384 times

That didn't work. Instead of a pie chart I saw a line with the both descriptions "proposed" and "to clarify". When I move the cursor over the two descriptions a message is shown, that 0 work items are counted.

Can anybody give some advice to me how I have to change the code? I already read the polarion guides and sdk documentary, but that didn't help me.