evrenvarol / outlook-taskboard

Kanban Board for Microsoft Outlook Tasks
MIT License
205 stars 76 forks source link

Task Runtime on Card #48

Closed ghost closed 5 years ago

ghost commented 6 years ago

hello I have the following questions:

  1. Lane Completed Would it be possible to determine and display the runtime in days for a task (datetime status completed - datetime status in Progress)?
  2. Lanes InProgress and Waiting Would it be possible to determine and display the runtime in days from the current date (current date - datetime Status in Progress)?

I don't have any knowledge for the implementation, otherwise I think the board is perfect.

best regards Jochen

ghost commented 5 years ago

Solution für Estimate between State inProgress = StartDate and CompletedDate: First set Startdate if newstatus = 1 if (taskitem.Status != newstatus) { taskitem.Status = newstatus; if (newstatus == 1) { var utc = new Date().toJSON().slice(0,10).replace(/-/g,'/'); taskitem.startdate = utc;} else if (newstatus == 2) { var bill = Math.round(Math.abs(taskitem.startdate - taskitem.DateCompleted) / (1000 60 60 * 24 )); taskitem.billinginformation = bill;}

                    taskitem.Save();
                    itemChanged = true;

                    ui.item.sortable.model.status = taskStatus(newstatus);
                    ui.item.sortable.model.completeddate = new Date(taskitem.DateCompleted)
                }

add by Array.push {{ billinginformation: task.BillingInformation

Show it in html