mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Import sort attribute of checklists and its items from Trello
This commit is contained in:
parent
2f69e65dc0
commit
a410dc50bb
1 changed files with 2 additions and 0 deletions
|
|
@ -403,6 +403,7 @@ export class TrelloCreator {
|
|||
cardId: this.cards[checklist.idCard],
|
||||
title: checklist.name,
|
||||
createdAt: this._now(),
|
||||
sort: checklist.pos,
|
||||
};
|
||||
const checklistId = Checklists.direct.insert(checklistToCreate);
|
||||
// keep track of Trello id => WeKan id
|
||||
|
|
@ -414,6 +415,7 @@ export class TrelloCreator {
|
|||
_id: checklistId + itemsToCreate.length,
|
||||
title: item.name,
|
||||
isFinished: item.state === 'complete',
|
||||
sort: item.pos,
|
||||
});
|
||||
});
|
||||
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue