Problem importing from bugzilla

Hi All,

I am trying to import issues from bugzilla (3.0) to Utrack (5.2.2), using the script

The script connects to the bugzilla db and starts reading the data, but when it gets to the custom fields part it fails ( see the traceback at the end of this post ). I have only one custom field in the bugzilla db, with type = 1. I guess I'm supposed to map it somehow but I can't figure out how.

Please help!

Many thanks,


Traceback of below:

All projects will be imported. Are you sure? [y/n]y
bz_product_names :   ['admin tasks', 'AnalystTools', 'Data Network', 'IT Requests', 'Product Support', 'Report Templates & Reportlets', 'Resource Generation']
Creating issue link types
Creating issue link types finished
Creating custom fields
Traceback (most recent call last):
  File "./", line 355, in <module>
  File "./", line 36, in main
    bz_product_names, lambda issue: True)
  File "./", line 273, in bugzilla2youtrack
    create_yt_custom_field(cf, target)
  File "./", line 187, in create_yt_custom_field
    create_custom_field(target, cf_type, cf_name, True)
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 37, in create_custom_field
    _create_custom_field_prototype(connection, cf_type, cf_name, auto_attached)
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 4, in _create_custom_field_prototype
    field = _get_custom_field(connection, cf_name)
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 15, in _get_custom_field
    existing_fields = [item for item in connection.getCustomFields() if'utf-8').lower() ==
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 743, in getCustomFields
    e.nodeType == Node.ELEMENT_NODE]
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 737, in getCustomField
 return youtrack.CustomField(self._get("/admin/customfield/field/" + urlquote(name.encode('utf-8')
)), self)
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 394, in __init__
    YouTrackObject.__init__(self, xml, youtrack)
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 55, in __init__
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 66, in _update
  File "/home/oren/youtrack/youtrack-rest-python-library-master/python/youtrack/", line 70, in _updateFromAttrs
    if el.attributes is not None:
AttributeError: 'str' object has no attribute 'attributes'

Please sign in to leave a comment.