Browse Source

Import missing card fields : isOvertime, startAt and spenTime

Ghassen Rjab 7 years ago
parent
commit
b475127c53
1 changed files with 3 additions and 0 deletions
  1. 3 0
      models/wekanCreator.js

+ 3 - 0
models/wekanCreator.js

@@ -228,7 +228,10 @@ export class WekanCreator {
         title: card.title,
         // we attribute the card to its creator if available
         userId: this._user(this.createdBy.cards[card._id]),
+        isOvertime: card.isOvertime || false,
+        startAt: card.startAt ? this._now(card.startAt) : null,
         dueAt: card.dueAt ? this._now(card.dueAt) : null,
+        spentTime: card.spentTime || null,
       };
       // add labels
       if (card.labelIds) {