Example #1
0
        /// <summary>
        /// 获取当前未完成的客户问题列表
        /// </summary>
        /// <returns></returns>
        public async Task <List <Issue> > GetUnhandledIssuesAsync()
        {
            var requestText = $"project = {CustomUtils.ProjectName} AND Assignee = {CustomUtils.Account} AND status in (新建, 处理中) ORDER BY Rank ASC";
            var issues      = await JiraConnectionHelper.RequestAsync(JiraCvteCom, requestText);

            return(issues);
        }
Example #2
0
        public async Task <List <Issue> > GetCurrentSprintIssuesAsync()
        {
            var requestText = $"project = {CustomUtils.ProjectName} AND Assignee = {CustomUtils.Account} AND Sprint in openSprints() ";

            requestText = $"{requestText} ORDER BY Rank ASC";
            var issues = await JiraConnectionHelper.RequestAsync(JiraCvteCom, requestText);

            return(issues);
        }
Example #3
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);
        }
Example #4
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);
        }
Example #5
0
        public async Task <List <Issue> > GetHandledIssuesAfterTimeAsync(DateTime startDate, DateTime endDate, List <string> solvedStatusList)
        {
            // updatedDate >= "2020-01-01 12:57" AND updatedDate <= "2020-03-28 12:57"
            var timeFilter = $"updatedDate >= \"{startDate.Year}-{startDate.Month}-{startDate.Day} 00:00\" AND updatedDate <= \"{endDate.Year}-{endDate.Month}-{endDate.Day} 23:59\"";

            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);
        }