mirror of
https://github.com/wekan/wekan.git
synced 2026-02-26 18:04:06 +01:00
Merge remote-tracking branch 'Angtrim/feature-duplicate' into edge
This commit is contained in:
commit
56cccc6781
15 changed files with 221 additions and 26 deletions
|
|
@ -141,13 +141,15 @@ RulesHelper = {
|
|||
Swimlanes.insert({
|
||||
title: action.swimlaneName,
|
||||
boardId,
|
||||
sort: 0
|
||||
});
|
||||
}
|
||||
if(action.actionType === 'addChecklistWithItems'){
|
||||
const checkListId = Checklists.insert({'title':action.checklistName, 'cardId':card._id, 'sort':0});
|
||||
const itemsArray = action.checklistItems.split(',');
|
||||
const checkList = Checklists.findOne({_id:checkListId});
|
||||
for(let i = 0; i <itemsArray.length; i++){
|
||||
ChecklistItems.insert({title:itemsArray[i], checklistId:checkListId, cardId:card._id, 'sort':0});
|
||||
ChecklistItems.insert({title:itemsArray[i], checklistId:checkListId, cardId:card._id, 'sort':checkList.itemCount()});
|
||||
}
|
||||
}
|
||||
if(action.actionType === 'createCard'){
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ TriggersDef = {
|
|||
matchingFields: ['boardId', 'listName', 'userId', 'swimlaneName', 'cardTitle'],
|
||||
},
|
||||
moveCard:{
|
||||
matchingFields: ['boardId', 'listName', 'oldListName', 'userId', 'swimlaneName'],
|
||||
matchingFields: ['boardId', 'listName', 'oldListName', 'userId', 'swimlaneName', 'cardTitle'],
|
||||
},
|
||||
archivedCard:{
|
||||
matchingFields: ['boardId', 'userId'],
|
||||
matchingFields: ['boardId', 'userId', 'cardTitle'],
|
||||
},
|
||||
restoredCard:{
|
||||
matchingFields: ['boardId', 'userId'],
|
||||
matchingFields: ['boardId', 'userId', 'cardTitle'],
|
||||
},
|
||||
joinMember:{
|
||||
matchingFields: ['boardId', 'username', 'userId'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue