def chart_xaxis(self): result=list() version_data=IssueStatisticsService.issue_count_byversion(self.project_id) for data in version_data: dm_version=Version.objects.get(data['VersionID']) result.append(dm_version.VVersion) return result
def get_issue_total(self, trend_name): result = dict() result['name'] = trend_name result['data'] = list() all_version_issue_count = IssueStatisticsService.issue_count_byversion( self.project_id, self.date_range) for data in all_version_issue_count: result['data'].append(data['TotalCount']) return result