Re: http://mail-archives.apache.org/mod_mbox/allura-dev/201406.mbox/%3C53AC490E.2030100%40brondsema.net%3E
Do an export of tickets from SF Allura and write a script to go through the JSON and:
- filter out all deleted & private tickets (except #6054)
- change "QA" field to "Reviewer"
- change "size" field to a labels like "sf-1", "sf-2", etc
- change milestone:
- to "backlog" if open/in-progress/validation/review/blocked
- to "released" if closed/wontfix/invalild Or even better would to look at the git tags for releases 1.0.0, 1.0.1, and 1.1.0 and find the tickets that go into those, and assign milestones appropriately. Can default a ton of tickets to 1.0.0 and then smaller set for 1.0.1 and 1.1.0
Then import locally as a test run and see how it works.
al/7510 in my fork
ticket['status'] != 'deleted'
-- there aren't any with this status, but no harm reallyindent=2
onjson.dump
can be helpfuls/wontfix/wont-fix/
custom_fields
section of the JSON should be updated to drop size and QA, and add Reviewer (I think it needs to be_reviewer
too, since all custom fields start with an underscore). Also the milestone field in that section should be updated to the few new milestones instead of the lots of SourceForge sprint milestones.Looks like we need an empty saved_bins field:
Lots (maybe all) open/review/in-progress tickets are ending up with no milestone set. They should go into 'unreleased'.
This may be different than what I said before, but I think only 'closed' tickets should default to asf_release_1.0.0. For 'invalid' and 'wont-fix' it doesn't make much sense to say those were in milestone asf_release_1.0.0, they should be in 'unreleased'.
Attachments to a ticket don't get imported. I was looking at ticket 7127 for example. Attachments on a comment do get imported though. Perhaps spin this off into a new ticket, but this will be a blocker.
I have fixed these issues, except attachments. In the exported file all the attachment properties are empty: "attachments": [], I think it is an export issue or it was intentionally done this way.
Many are empty (because they have no attachments), but for 7127 I see:
Created [#7580] for this
Related
Tickets:
#7580