public void AddBacklogItem(BacklogItem item)
 {
     if (currentSprint is null)
     {
         Console.WriteLine("Sprint not set, please set the current sprint you want to add to first");
     }
     else
     {
         currentSprint.backlog.addBacklogItem(item);
     }
 }
        public BacklogItem(BacklogItem backlogItem)
        {
            BacklogItem backlogItem1 = this;

            backlogItem1.developer   = backlogItem.developer;
            backlogItem1.backlog     = backlogItem.backlog;
            backlogItem1.description = backlogItem.description;
            backlogState             = new TodoBacklogState();
            backlogItem1.backlogState.setBacklogItem(backlogItem1);
            backlogItem1.points = backlogItem.points;
            activities          = new List <Activity>();
        }
        public void updateBacklogItem(BacklogItem backlogItem)
        {
            //notify all subscribers that the state of one of our backlog items changed
            backlogItem.Notify();

            //if the item has done state, we can add it to our burndown chart
            if (backlogItem.backlogState is DoneBacklogState && !burnDown.ContainsKey(backlogItem))
            {
                //later on we can plot a graph using the datetime + points of backlogitem
                burnDown.Add(backlogItem, DateTime.Now);
            }

            else if (backlogItem.backlogState is TodoBacklogState && burnDown.ContainsKey(backlogItem))
            {
                //backlogitem already got set to done once, we dont remove it, but duplicate it and set its value negative
                BacklogItem backlogItemNegative = new BacklogItem(backlogItem);
                backlogItemNegative.points = 0 - backlogItemNegative.points;
                burnDown.Add(backlogItemNegative, DateTime.Now);
            }
        }
Example #4
0
 public void AddBacklogItem(BacklogItem item)
 {
     board.AddBacklogItem(item);
 }
 public void addBacklogItem(BacklogItem backlogItem)
 {
     backlogItems.Add(backlogItem);
 }
Example #6
0
 public void AddBacklogItem(BacklogItem item)
 {
     backlog.addBacklogItem(item);
 }