public OtfsBacklogItem(OtfsProjectId projectId, OtfsBacklogItemId backlogItemId, string title, string assignedTo, DateTime dataAtualizacao, OtfsBacklogItemState state = OtfsBacklogItemState.New ) { this.BacklogItemId = backlogItemId; this.AssignedTo = assignedTo; this.ProjectId = projectId; this.Title = title; this.State = state; this.DataAtualizacao = dataAtualizacao; }
public IEnumerable<OtfsIteration> Agendados(OtfsProjectId otfsProjectId) { var project = GetProject(otfsProjectId.Id); var iterations = new List<OtfsIteration>(); foreach (Node parentNode in project.IterationRootNodes) AdicionarIteracoes(otfsProjectId, iterations, parentNode); return iterations; }
public void MarcarBackLogItemPublicado(OtfsProjectId projetoId) { var interation = _otfsIterationRepository.Correntes().Where(dado => dado.ProjectId.Id == projetoId.Id).FirstOrDefault(); var backlogItems = _otfsBacklogItemRepository.ItensParaBuild(interation); foreach (var item in backlogItems) { item.MarcarComoPublicado("Aplicação publicada com sucesso"); item.Comitar(interation); _otfsBacklogItemRepository.Atualizar(item); } }
public ActionResult DashboardAuditorFiscal(int projectId, string path, DateTime? inicio, DateTime? fim) { var id = new OtfsProjectId(projectId); var backlogsItemsPendentes = _otfsBacklogItemServices.RetorarBacklogItens(id, path); var model = new DashboardAuditorViewModel { Interation = path, FimSprint = fim, InicioSprint = inicio, ItemsPendentes = backlogsItemsPendentes.BacklogsItemsPendentes, ItemsAndamento = backlogsItemsPendentes.BacklogsItemsAndamento, ItemsComitadas = backlogsItemsPendentes.BacklogsItemsParaTestes, ItemsParaBuild = backlogsItemsPendentes.BacklogsItemsParaBuild, ItemsPublicados = backlogsItemsPendentes.BacklogsItemsPublicados }; return View(model); }
private IEnumerable<OtfsBacklogItem> QueryOtfsBacklogItems(OtfsBacklogItemState state, OtfsIteration iteration = null, bool all = false, OtfsProjectId projectId = null) { var user = all ? string.Empty : "[Assigned To] = @User and "; var iterator = iteration == null ? string.Empty : " and [Iteration Path] under @Path"; var project_Id = projectId == null ? string.Empty : " and [ProjectId] under @ProjectId"; string query = "Select * " + "From WorkItems " + "Where [Work Item Type] = @Type and " + user + " [State] = @State" + iterator; var param = new Dictionary<string, string>(); param.Add("State", state.ToString()); param.Add("User", this.UsuarioAutenticado()); param.Add("Type", "Product Backlog Item"); param.Add("Path", iteration.Path); if (projectId != null) param.Add("ProjectId", projectId.Id.ToString()); return Execute(query, param, iteration); }
protected OtfsIteration GenerateFromNode(OtfsProjectId otfsProjectId, Node node) { var infoNodes = GetNodeInfo(node); return new OtfsIteration(otfsProjectId, node.Name, node.Path, infoNodes.StartDate, infoNodes.FinishDate); }
public OtfsBacklogItemCollection RetorarBacklogItens(OtfsProjectId projectId, string iteration = null) { var sprint = _otfsIterationRepository.PorIteracao(projectId, iteration); return _otfsBacklogItemRepository.LocalizarPorIteracao(sprint); }
public OtfsTask(OtfsProjectId projectId, OtfsTaskId taskId, string title) { this.Title = title; this.TaskId = taskId; this.ProjectId = projectId; }
public ActionResult DashboardTimer() { var id = new OtfsProjectId(202); var backlogsItemsPendentes = _otfsBacklogItemServices.RetorarBacklogItens(id, "documentosfiscais.set.govrn\\Implementações de Abril"); var model = new DashboardAuditorViewModel { Interation = "documentosfiscais.set.govrn\\Implementações de Abril", FimSprint = null, InicioSprint = null, ItemsPendentes = backlogsItemsPendentes.BacklogsItemsPendentes, ItemsAndamento = backlogsItemsPendentes.BacklogsItemsAndamento, ItemsComitadas = backlogsItemsPendentes.BacklogsItemsParaTestes, ItemsParaBuild = backlogsItemsPendentes.BacklogsItemsParaBuild, ItemsPublicados = backlogsItemsPendentes.BacklogsItemsPublicados }; return View(model); }
public OtfsProject(OtfsProjectId projectId, string name) { this.Name = name; this.ProjectId = projectId; _iterations = new List<OtfsIteration>(); }
public OtfsIteration(OtfsProjectId projectId, string name, string path, DateTime? start, DateTime? end) : this(projectId, name, path) { this.EndDate = end; this.StartDate = start; }
public OtfsIteration(OtfsProjectId projectId, string name, string path) { this.Path = path; this.ProjectId = projectId; this.Name = name; }
private void AdicionarIteracoes(OtfsProjectId otfsProjectId, List<OtfsIteration> iterations, Node parentNode) { iterations.Add(GenerateFromNode(otfsProjectId, parentNode)); foreach (Node childNode in parentNode.ChildNodes) AdicionarIteracoes(otfsProjectId, iterations, parentNode); }
public OtfsIteration PorIteracao(OtfsProjectId otfsProjectId, string path) { return Agendados(otfsProjectId) .Where(x => x.Path == path) .FirstOrDefault(); }