public IActionResult Create() { ViewData["StoryStatuses"] = _storyService.GetAllStoryStatus(); ViewData["StoryType"] = _storyService.GetAllStoryType(); ViewData["Sprints"] = _sprintService.GetAll(); return(View()); }
public ActionResult Create([Bind(Include = "Id,Title,Description,DevelopedId,TesterId,ProductBackLogId,ReleaseId,SprintId,DevEstimate , TestEstiamte , DevActual ,TestActual ")] UserStory userStory) { if (ModelState.IsValid) { service.CreateUserStory(userStory); if (!string.IsNullOrEmpty(Request["sprintId"])) { return(RedirectToAction("Details", "Sprint", new { id = userStory.SprintId })); } else if (!string.IsNullOrEmpty(Request["releaseId"])) { return(RedirectToAction("Details", "ReleaseBacklog", new { id = userStory.ReleaseId })); } else if (!string.IsNullOrEmpty(Request["productId"])) { return(RedirectToAction("Details", "ProductBacklogs", new { id = userStory.ProductBackLogId })); } } ViewBag.DevelopedId = new SelectList(HrService.GetAllDevelopers(), "Id", "FirstName"); ViewBag.ProductBackLogId = new SelectList(ProductService.GetAllProductBackLogsByOwner(Utility.GetEmployeeSession(this.Session).Id), "Id", "Name"); ViewBag.ReleaseId = new SelectList(ReleaseSevice.GetAll(), "Id", "ReleaseName"); ViewBag.SprintId = new SelectList(SprintService.GetAll(), "Id", "SprintName"); ViewBag.TesterId = new SelectList(HrService.GetAllTesters(), "Id", "FirstName"); return(View(userStory)); }
public ActionResult Index() { var emp = Utility.GetEmployeeSession(Session); switch ((RoleEnum)emp.RoleId) { case RoleEnum.ProductOwner: ViewBag.Data = Utility.ConvertToProductSummary(productService.GetAllProductBackLogsByOwner(emp.Id)); break; case RoleEnum.ScrumMaster: ViewBag.Data = Utility.ConvertToSprintSummary(sprintService.GetAll().Where(i => i.ReleaseBacklog.ScrumMasterId == emp.Id)); break; case RoleEnum.HR: break; case RoleEnum.Developer: ViewBag.Data = usService.GetAllByDeveloperId(emp.Id); break; case RoleEnum.Tester: ViewBag.Data = usService.GetAllByTesterId(emp.Id); break; } return(View()); }
public IActionResult Index(string filter, int page = 1, string sortExpression = "Description") { var sprints = _sprintService.GetAll().Select(x => new SprintDetailViewModel { Id = x.Id.ToString(), Number = x.Number, Description = x.Description, StartDate = x.StartDate, EndDate = x.EndDate, SprintStatusId = x.SprintStatusId, ProjectId = x.ProjectId }); //var model = new SprintIndexViewModel //{ // Sprints = sprints //}; //return View(model); if (!string.IsNullOrWhiteSpace(filter)) { sprints = sprints.Where(p => p.Description.Contains(filter)); } var model = PagingList.Create(sprints, 5, page, sortExpression, "Description"); model.RouteValue = new RouteValueDictionary { { "filter", filter } }; return(View(model)); }
public IActionResult GetAll() { var result = _sprintService.GetAll(); var sprints = _mapper.Map <IEnumerable <Sprint> >(result); return(Ok(sprints)); }
public IActionResult GetAll([FromRoute] Guid project_id) { try { JwtClaimM jwt_claim = _jwtAuth.GetClaims(Request); _permission.EnsureProjectMember(jwt_claim.UserId, project_id); return(Ok(_sprint.GetAll(project_id))); } catch (Exception e) { return(GetError(e)); } }
//get all the sprints specific to projectId public void GetSprints(int projectid) { List <Sprint> data = _service.GetAll(projectid); Clients.Client(Context.ConnectionId).InvokeAsync("getSprints", data); }
// GET: /Sprint/ public ActionResult Index() { //var sprints = db.Sprints.Include(s => s.releaseBacklog); return(View(service.GetAll())); }
public List <Sprint> GetAll(int id) { return(_service.GetAll(id)); }