Redmine-Todo-lists
Redmine-Todo-lists copied to clipboard
Would it be easy to add an issue that already exists?
Hi!
First of all, thanks to share this great plugin! I will use it a lot I think.
I just wondered: it does not seem to be possible to get already created issues and insert them in the todo list. Do you confirm?
Do you think it would be difficult to add such a functionnality? I won't hesitate to add it myself if necessary - and of course if you can provide me with some advices/guidelines to add this functionnality, it'll help me a lot.
Thanks! Kulgar.
Hi!
Thanks for contributing!
Adding a to-do to an existing issue is very easy and requires only inserting a row to todo_items table with appropriate issue_id. If you need to do it just once you can simply use a query like INSERT INTO todo_items (issue_id, todo_list_id) SELECT id, 4 from issues WHERE project_id=1;
just replace 4 with your todo list id, and 1 with the project Id your to-do list is assigned to.
If you'd like to make it a feature, I think you will have to somehow extend the issue's right-click menu and add some option like 'Create a to-do' (or allow it in some place else). I can't help with extending redmine because I don't know it that well :(
No problem! I also thought about getting the list of the matching issues when you are creating a new todo and then allow the user to select one of them as new todo (and so if the todo match an issue already created, it doesn't create a new issue but assign it to the todo). As redmine already gets this list of issues when you create a new issue and you want to assign a parent issue (for instance, but it does it in several other places), I don't think it would be difficult to get this same list when creating a new todo.
As I already know AngularJS and already modified some functionalities of redmine, I think it won't be too difficult for me to add such a feature. Moreover I installed another plugin (Timetracker) which adds an option to the right-click menu, so, I think I'll be able to get the trick to add this option for this plugin.
So... it is just now a matter of time... when I'll have extra free time, I'll try to add this feature and I will make a pullrequest as I think I will really need it. :)
That's great! Can't wait for pull request! :)
+1 This would be a great update! I had tried to derive subproject (as my to do list become too big), however did not found user friendly way to export corresponding todo list from parent project. As for me a more useful feature would be a possibility to change project property (like in update Issues menu) of a single to-do list.
Did you have any luck with that? I could probably give it a try too but I want to ask first :)
Unfortunately I did not have time to work on it. :( I'm really busy right now, but I don't forget this task. :-)
Sure :) Please just let me know in here when you do - I think I may give it a try soon and it would be a shame to duplicate each other's work :)
Of course I will definitely tell you!
Just an idea of possible interface for this feature, may be some developer can decide that it is easier to implement.
As far as I understand redmine has a global numeration of all issues in all trackers. So if the input starts from # followed by number it should be interpreted as an existing issue, filling the content of the todo with an issue name after pressing a button "Add this to-do"
As a current walkaround you can manually copy issue name to the todo field, add it, move to the corresponding issue and edit it (add the original issue a related one)
yes, this is a great feature. i can't wait for it. just add the issue number is ok. unfortunately i have no skill on ruby...