mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 01:14:12 +03:00
feat: Add ability to link tasks to cards
This commit is contained in:
@@ -67,6 +67,17 @@ module.exports = {
|
||||
// TODO: send webhooks
|
||||
}
|
||||
|
||||
if (values.linkedCard) {
|
||||
Object.assign(values, {
|
||||
linkedCardId: values.linkedCard.id,
|
||||
name: values.linkedCard.name,
|
||||
});
|
||||
|
||||
if (values.linkedCard.isClosed) {
|
||||
values.isCompleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
const task = await Task.qm.createOne({
|
||||
...values,
|
||||
position,
|
||||
|
||||
Reference in New Issue
Block a user