[FR] Option to add subtask from within task details pannel #1761

Closed
opened 2026-03-22 13:35:16 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @RoboMagus on GitHub (Mar 10, 2022).

Currently it seems to be only possible to add a 'subtask' relation for existing tasks using the 'add task relations' option.
However it would be a great improvement to be able to add such a subtask from the same menu as well, if a task with the provided name does not already exist.

Originally created by @RoboMagus on GitHub (Mar 10, 2022). Currently it seems to be only possible to add a 'subtask' relation for existing tasks using the 'add task relations' option. However it would be a great improvement to be able to add such a subtask from the same menu as well, if a task with the provided name does not already exist.
Author
Owner

@kolaente commented on GitHub (Mar 10, 2022):

That already works. What version are you using? Can you reproduce this on try?

@kolaente commented on GitHub (Mar 10, 2022): That already works. What version are you using? Can you reproduce this on [try](https://try.vikunja.io)?
Author
Owner

@RoboMagus commented on GitHub (Mar 11, 2022):

Ah, yes. I see the problem now.

I am using the latest greatest versions for all Vikunja containers, and I could reproduce this in try.
The scenario that I ran into was typing the name of the Subtask and then hitting the button add a new task relation, which would then throw me an error cannot read properties of null (reading 'id').
After trying some variations on this, when just hitting enter after filling in the subtask name it works as intended.

I expected the on screen button and enter to perform the same action though. Is that not the case?

@RoboMagus commented on GitHub (Mar 11, 2022): Ah, yes. I see the problem now. I am using the latest greatest versions for all Vikunja containers, and I could reproduce this in `try`. The scenario that I ran into was typing the name of the Subtask and then hitting the button `add a new task relation`, which would then throw me an error `cannot read properties of null (reading 'id')`. After trying some variations on this, when just hitting `enter` after filling in the subtask name it works as intended. I expected the on screen button and enter to perform the same action though. Is that not the case?
Author
Owner

@kolaente commented on GitHub (Mar 22, 2022):

Interesting, I was not able to reproduce the error about the missing property - I got an error the task would not exist (which kind of makes sense, given that Vikunja didn't create it on the fly).

Can you provide exact steps to reproduce the bug?

How should this work? The same when pressing enter and clicking "Add a new task relation"?

@kolaente commented on GitHub (Mar 22, 2022): Interesting, I was not able to reproduce the error about the missing property - I got an error the task would not exist (which kind of makes sense, given that Vikunja didn't create it on the fly). Can you provide exact steps to reproduce the bug? How should this work? The same when pressing enter and clicking "Add a new task relation"?
Author
Owner

@RoboMagus commented on GitHub (Mar 28, 2022):

When trying to reproduce now I no longer get the same error message. This may have changed when I've updated the vikunja docker images.

For the record, what I would do is:

  1. Open an existing task in the kanban board
  2. From the sidebar select add task relations
  3. Enter a subtask title in the textbox.
  4. Select subtask from the dropdown list.
  5. Click Add a new task relation.

When going through the same steps now I get Request failed with status code 404. The list task does not exist.

To avoid user confusion, would it be possible to create the task when clicking the button when a task with the provided name does not exist?

@RoboMagus commented on GitHub (Mar 28, 2022): When trying to reproduce now I no longer get the same error message. This may have changed when I've updated the vikunja docker images. For the record, what I would do is: 1. Open an existing task in the kanban board 2. From the sidebar select `add task relations` 3. Enter a subtask title in the textbox. 4. Select `subtask` from the dropdown list. 5. Click `Add a new task relation`. When going through the same steps now I get `Request failed with status code 404. The list task does not exist.` To avoid user confusion, would it be possible to create the task when clicking the button when a task with the provided name does not exist?
Author
Owner

@kolaente commented on GitHub (Mar 30, 2022):

To avoid user confusion, would it be possible to create the task when clicking the button when a task with the provided name does not exist?

I think that would be the best solution, yes.

@kolaente commented on GitHub (Mar 30, 2022): > To avoid user confusion, would it be possible to create the task when clicking the button when a task with the provided name does not exist? I think that would be the best solution, yes.
Author
Owner

@kolaente commented on GitHub (Apr 2, 2022):

Should be fixed in dfed1f438a - please verify with the next unstable release in ~30 min if the fix works for you.

@kolaente commented on GitHub (Apr 2, 2022): Should be fixed in dfed1f438a168606617d2ecef55cd83ff724201f - please verify with the next unstable release in ~30 min if the fix works for you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1761