forked from angro/redmine_importer
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new capability to import parent tasks.
If you provide a column that you map to "Parent Task", you can import parent tasks. There are several restrictions: - If you want to import parent tasks, you must set the "Select unique field for identify issue" value in the upload. - Obviously, that field must be unqiue. - Finally, and most importantly, parent tasks must come before child tasks in the list. Although this is kind of a pain, it makes this a one-pass rather than two-pass feature. This has not yet been tested with using the ID as the unique column. Also, right now the "Select unique field for identify issue" option is disabled by default; the second half of this update will update the UI as well.
- Loading branch information
Leo Hourvitz
committed
Mar 30, 2011
1 parent
b2106a4
commit bbecb10
Showing
1 changed file
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, thank you for taking the time to put this together. Really great improvements. I tried to import some issues and associate them to an existing parent. I have that parent value as the first column in the csv so it precedes all other data, and I assigned a unique field that was not the issue ID. All the issues imported correctly (367 of them), but were not assigned to the parent. I followed your restrictions as explained as far as I know. Any thoughts? Again, thank you for the great work.
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Mark, thanks for the note. Did you make sure to set the unique field pulldown in the UI? Right now, totally counter-intuitively, you have to turn on the "Update existing issues" checkbox. Also, I haven't tested whether the unique field can be a custom field or not (thinking about it, I kind of suspect it won't work yet).
I really want to write a manual for the plugin, but I'm not sure what the best way/place to document Redmine plugins is. Let me know if you've seen how other plugins do this well. I suppose I could just throw a link into the first upload page.
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Mark,
I started a new directory test/samples and put a sample .csv in it showing the simplest possible parent upload. There's also a screenshot in there of the needed UI setting to get parents to upload right now (until I can fix the UI).
I also tried to start documentation of the plugin on the Wiki for this repository (but I haven't figured out how to make the link to the screenshot image work yet).
Let me know if that helps!
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark -- Quite a few updates this weekend, most notably the user documentation on this Github's wiki and a whole directory full of examples with instructions on how to upload them. I also fixed the problem with not being able to use a custom field for relationships, and added the ability to import explicit issue relationships to a certain extent. Please take a look if you get a chance, hopefully it will help quite a bit!
bbecb10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.