mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
feat: Add ability to link tasks to cards
This commit is contained in:
parent
49203e9d56
commit
230f50e3d9
35 changed files with 761 additions and 243 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue