mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Take archived status into consideration for subtasks
This commit is contained in:
parent
5a023e4315
commit
6ab1cbb341
1 changed files with 18 additions and 3 deletions
|
|
@ -221,15 +221,30 @@ Cards.helpers({
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasks() {
|
subtasks() {
|
||||||
return Cards.find({parentId: this._id}, {sort: { sort: 1 } });
|
return Cards.find({
|
||||||
|
parentId: this._id,
|
||||||
|
archived: false,
|
||||||
|
}, {sort: { sort: 1 } });
|
||||||
|
},
|
||||||
|
|
||||||
|
allSubtasks() {
|
||||||
|
return Cards.find({
|
||||||
|
parentId: this._id,
|
||||||
|
archived: false,
|
||||||
|
}, {sort: { sort: 1 } });
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksCount() {
|
subtasksCount() {
|
||||||
return Cards.find({parentId: this._id}).count();
|
return Cards.find({
|
||||||
|
parentId: this._id,
|
||||||
|
archived: false,
|
||||||
|
}).count();
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksFinishedCount() {
|
subtasksFinishedCount() {
|
||||||
return Cards.find({parentId: this._id, archived: true}).count();
|
return Cards.find({
|
||||||
|
parentId: this._id,
|
||||||
|
archived: true}).count();
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksFinished() {
|
subtasksFinished() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue