예제 #1
0
        internal static TFSQuery GetListOfWorkItemsQuery(string[] workItemIds)
        {
            string   childTasksQuery = string.Format(ListOfWorkItemsQuery, BuildWorkItemIdsString(workItemIds));
            TFSQuery query           = new TFSQuery {
                QueryString = childTasksQuery
            };

            query.Context.Add("project", "KTA");
            return(query);
        }
예제 #2
0
        internal static TFSQuery GetChildTasksQuery(string parentId)
        {
            string   childTasksQuery = string.Format(ChildTasksQuery, parentId);
            TFSQuery query           = new TFSQuery {
                QueryString = childTasksQuery
            };

            query.Context.Add("project", "KTA");
            return(query);
        }
예제 #3
0
        internal static TFSQuery GetAssignedWorkItemsQuery(string Query)
        {
            string   burnQuery = Query;
            TFSQuery query     = new TFSQuery {
                QueryString = burnQuery
            };

            query.Context.Add("project", "KTA");
            return(query);
        }
예제 #4
0
        internal static TFSQuery GetBurnQuery(BurnRetrievalOptions filter, string Query)
        {
            TFSQuery query = new TFSQuery {
                QueryString = Query
            };

            query.Context.Add("project", "KTA");
            query.Context.Add("startDate", filter.DateRange.From.Date);
            query.Context.Add("endDate", filter.DateRange.To.Date.AddDays(1));
            return(query);
        }
예제 #5
0
        internal static TFSQuery GetBugsClosedQuery(BurnRetrievalOptions filter)
        {
            string   bugsResolvedQuery = string.Format(BugsClosedQuery, BuildResourceString(filter));
            TFSQuery query             = new TFSQuery {
                QueryString = bugsResolvedQuery
            };

            query.Context.Add("project", "KTA");
            query.Context.Add("startDate", filter.DateRange.From + Constants.TFSServerTimeDifferenceConstant);
            query.Context.Add("endDate", filter.DateRange.To + Constants.TFSServerTimeDifferenceConstant);
            return(query);
        }
예제 #6
0
        internal static TFSQuery GetTaskUpdatesDataQuery(BurnRetrievalOptions filter)
        {
            string   taskUpdatesQuery = string.Format(TaskUpdateIssueQuery, BuildResourceString(filter));
            TFSQuery query            = new TFSQuery {
                QueryString = taskUpdatesQuery
            };

            query.Context.Add("project", "KTA");
            query.Context.Add("startDate", filter.DateRange.From + Constants.TFSServerTimeDifferenceConstant);
            query.Context.Add("endDate", filter.DateRange.To + Constants.TFSServerTimeDifferenceConstant);
            return(query);
        }
예제 #7
0
        internal static TFSQuery GetBurnQueryOLD(BurnRetrievalOptions filter)
        {
            string   burnQuery = string.Format(BurnDetailsQuery, BuildResourceString(filter), BuildRemovedTasksString(filter), BuildSprintString(filter));
            TFSQuery query     = new TFSQuery {
                QueryString = burnQuery
            };

            query.Context.Add("project", "KTA");
            query.Context.Add("startDate", filter.DateRange.From.Date);
            query.Context.Add("endDate", filter.DateRange.To.Date.AddDays(1));
            return(query);
        }