Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag Tasks Between Projects #810

Open
Tracked by #3111
kd2flz opened this issue Jan 19, 2021 · 14 comments
Open
Tracked by #3111

Drag Tasks Between Projects #810

kd2flz opened this issue Jan 19, 2021 · 14 comments

Comments

@kd2flz
Copy link

kd2flz commented Jan 19, 2021

Problem Statement

I am unable to drag tasks between projects. If I make a task in the wrong project, or change my mind about where a task should be, it would be cool to be able to drag it onto a new project.

❔ Possible Solution

Dragging a task onto a new project should remove the task from the current project and create the task with the same information in the new project.

⤴️ Describe alternatives you've considered

Possibly at least a "delete task" button so that the mistakenly added task doesn't show up as "completed".

➕ Additional context

This isn't super urgent, but it would be quite useful!

@johannesjo
Copy link
Owner

Thank you very much for taking the time to open this up. Makes a lot of sense to add something like that. Personally I either use the short syntax (e.g. "task +projectName") or the shortcut for assign project, so personally I don't need the feature at all atm., but it would be nice to have anyway. If somebody wants to give it a shot, please let me know!

@github-actions
Copy link

This issue has not received any updates in 90 days. Please comment, if this still relevant!

@sylock
Copy link

sylock commented Apr 11, 2022

Upvote ! Drag and drop is the first thing I tried and I had to search for 10 min before finding other ways of doing it.

@clarkdowding
Copy link

Another Upvote. Like @sylock the first thing I did when I realized I wanted a task I created moved over to a particular project was click and drag. It actually dragged and the project lit up when I hovered over it with the task. So close...

@johannesjo
Copy link
Owner

@clarkdowding if you want to promote this issue I suggest clicking the thumbs up emoji below the original post. :)

@clarkdowding
Copy link

I suggest clicking the thumbs up emoji below the original post.

Thanks @johannesjo, Just did that. Great app. Thanks for your hard work.

@clarkdowding
Copy link

How To Move Tasks To Another Project

I found an existing feature that 95% resolves my need for an enhancement. I'm mentioning it here because I think it will help others. I was watching @johannesjo training video trying to learn how to do sub-tasks and discovered the following:

Right-click on any task for a pop-up menu. One option there allows you to re-assign a task to a different project.

As far as I'm concerned, the task pop-up menu makes this current drag-and-drop enhancement request a very nice feature but not nearly as high of a priority for me.

Amazing what you can learn when you slow down and go through the developer's documentation (or training).

Thanks @johannesjo

@github-actions
Copy link

This issue has not received any updates in 90 days. Please comment, if this still relevant!

@github-actions github-actions bot added the Stale label Aug 23, 2022
@github-actions github-actions bot closed this as completed Oct 1, 2022
@johannesjo johannesjo reopened this Apr 19, 2024
@rommeswi
Copy link

I looked into the code but didn't understand enough of the overall structure to get a feeling where to start. It seems that by adding an onDrop event this should not be too complicated if one knows the way around the code.

@johannesjo
Copy link
Owner

Hey @rommeswi . It is not as easy unfortunately. SP is using dragula under the hood for the task list and the project and tag lists. A drop event is not fired.

@rommeswi
Copy link

So it is using dragula separately for the different lists? Because according to https://github.com/bevacqua/dragula#drakeon-events there should be a drop event. But if that only works within a list, that of course does not help. If the projects, tags, and tasks are in different containers, then it seems that it should be possible to get those drop events working, or?

@johannesjo
Copy link
Owner

So it is using dragula separately for the different lists?

Seems like like it. SP uses ng2-dragula under the hood to wrap dragula.

@rommeswi
Copy link

Indeed, according to the ng2-dragula manual you linked:

"You can group containers together by giving them the same group name. When you do, the children of each container can be dragged to any container in the same group."

So if the containers have different group names then indeed there is not much one can do without some major changes.

@johannesjo
Copy link
Owner

Might make sense to replace dragula at some point with a custom solution. Also for other stuff like converting parents to sub tasks and vice versa. Probably far from trivial though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants