コード例 #1
0
        public void OnGet()
        {
            //Used for search
            //Tasks = _taskData.GetTaskByName(SearchTerm);

            SprintTasks  = _taskData.GetTasks(TaskStatus.Sprint).ToList();
            DoingTasks   = _taskData.GetTasks(TaskStatus.Doing).ToList();
            BlockedTasks = _taskData.GetTasks(TaskStatus.Blocked).ToList();
        }
コード例 #2
0
        public List <TaskDTO> GetTasks()
        {
            List <Data.Task> tasks    = _taskData.GetTasks();
            List <TaskDTO>   DTOTasks = Mapper.Map <List <TaskDTO> >(tasks);

            return(DTOTasks);
        }
コード例 #3
0
        public void OnGet()
        {
            Tasks        = _taskData.GetTasks();
            SprintTasks  = _taskData.GetTasks(TaskStatus.Sprint).ToList();
            DoingTasks   = _taskData.GetTasks(TaskStatus.Doing).ToList();
            BlockedTasks = _taskData.GetTasks(TaskStatus.Blocked).ToList();
            QaTasks      = _taskData.GetTasks(TaskStatus.QA).ToList();
            DoneTasks    = _taskData.GetTasks(TaskStatus.Done).ToList();

            foreach (var task in Tasks)
            {
                switch (task.Status)
                {
                case TaskStatus.Sprint:
                    SprintSP += task.StoryPoints;
                    break;

                case TaskStatus.Doing:
                    DoingSP += task.StoryPoints;
                    break;

                case TaskStatus.Blocked:
                    BlockedSP += task.StoryPoints;
                    break;

                case TaskStatus.QA:
                    QaSP += task.StoryPoints;
                    break;

                case TaskStatus.Done:
                    DoneSP += task.StoryPoints;
                    break;

                default:
                    break;
                }
            }

            AllSP = SprintSP + DoingSP + BlockedSP + QaSP + DoneSP;
        }
コード例 #4
0
 public IActionResult GetTasks()
 {
     return(Ok(_taskData.GetTasks()));
 }
コード例 #5
0
 public void OnGet()
 {
     BacklogTasks = _taskData.GetTasks(Core.TaskStatus.Backlog).ToList();
 }
コード例 #6
0
 public void OnGet()
 {
     QaTasks = _taskData.GetTasks(TaskStatus.QA).ToList();
 }