iphanzeke / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
0 stars 0 forks source link

Bitbucket issues exported as "Opened", even issues in the Closed state on Google Code #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to export issues from 
https://code.google.com/p/oasychev-moodle-plugins/issues/list to BitBucket 
using Python 2.7 and code/instructions from 
https://code.google.com/p/support-tools/wiki/IssueExporterTool

However, all imported issues appeared to be in the "New" status, even "Done" 
ones. Is there a way to export issues from Google Code to BitBucket without 
losing their status/state? At least in open/closed dualism?

Original issue reported on code.google.com by chrsm...@google.com on 1 Sep 2015 at 5:00

GoogleCodeExporter commented 9 years ago
It seems that converter miss some states, making "done" issues "new".
We edited convertor getStatus function adding support for two more statuses:

def _getStatus(status):
  mapping = {
      "new": "new",
      "accepted": "open",
      "fixed": "resolved",
      "invalid": "invalid",
      "duplicate": "duplicate",
      "wontfix": "wontfix",
      "done": "closed"
  }
  return mapping.get(status.lower(), "new")

Original comment by oasyc...@gmail.com on 1 Sep 2015 at 5:05