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); }
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); }
internal static TFSQuery GetAssignedWorkItemsQuery(string Query) { string burnQuery = Query; TFSQuery query = new TFSQuery { QueryString = burnQuery }; query.Context.Add("project", "KTA"); return(query); }
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); }
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); }
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); }
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); }