def chart_xaxis(self):
     result = list()
     last30_days_data = IssueStatisticsService.issue_trend_last30days(
         self.project_id, self.version_id, self.date_range)
     for data in last30_days_data:
         result.append(data.get('StatisticsDate'))
     return result
 def get_issue_trend(self, trend_name):
     result = dict()
     result['name'] = trend_name
     result['data'] = list()
     last30_days_data = IssueStatisticsService.issue_trend_last30days(
         self.project_id, self.version_id, self.date_range)
     if trend_name == "New":
         for data in last30_days_data:
             result['data'].append(data.get('OpenedToday'))
     if trend_name == "Resolved":
         for data in last30_days_data:
             result['data'].append(data.get('ResolvedToday'))
     return result