Пример #1
0
        /// <summary>
        /// 获取对应时间段新建的客户问题列表
        /// </summary>
        /// <returns></returns>
        public async Task <List <Issue> > GetIssuesByPeriodAsync(DuePeriodType periodType)
        {
            var timeFilter  = DueTimeTrackingHelper.GetTimeFilter(periodType, "ResolutionDate");
            var requestText = $"project = {CustomUtils.ProjectName} AND Assignee = {CustomUtils.Account}";

            if (!string.IsNullOrEmpty(timeFilter))
            {
                requestText = $"{requestText} AND {timeFilter}";
            }
            requestText = $"{requestText} ORDER BY Rank ASC";
            var issues = await JiraConnectionHelper.RequestAsync(JiraCvteCom, requestText);

            return(issues);
        }
Пример #2
0
        /// <summary>
        /// 获取已完成的客户问题数
        /// </summary>
        /// <returns></returns>
        public async Task <List <Issue> > GetHandledIssuesAfterTimeAsync(DuePeriodType periodType, List <string> solvedStatusList)
        {
            //使用更新日期(因为测试中、验收等的问题,并没有解决,所以没有解决日期)
            var timeFilter  = DueTimeTrackingHelper.GetAfterTimeFilter(periodType, "updatedDate");
            var requestText = $"project = {CustomUtils.ProjectName} AND Assignee = {CustomUtils.Account} AND status in ({string.Join(",", solvedStatusList)})";

            if (!string.IsNullOrEmpty(timeFilter))
            {
                requestText = $"{requestText} AND {timeFilter}";
            }
            requestText = $"{requestText} ORDER BY Rank ASC";
            var issues = await JiraConnectionHelper.RequestAsync(JiraCvteCom, requestText);

            return(issues);
        }