Import data from BugZilla in YouTrack
Good afternoon, we have Bugzilla, which uses a database PostgresSQL, I downloaded a python script to synchronize YouTrack and Bugzilla, he can only work with of MySQL, how to transfer data when using Bugzilla PostgreSQL?
Please sign in to leave a comment.
You're able to make an export from PostgresSQL to MySQL script (via MySQLDump), insert resulting script to import script and run it again.
Let me know if need an assistance with this.
Unfortunately, support of the other databases weren't planned for the nearest future.
Currently, there are several available workarounds for this and that one I've provided to you seems to be rather evident and easy.
Please note, you are welcome to contact us if need an assistance with this.
target_url = "http://192.168.24.50:8080"
target_login = "root"
target_pass = "my_pass"
bz_db = "bugs"
bz_host = "localhost"
bz_port = 3306
bz_login = "root"
bz_pass = "my_pass"
bz_product_names = []
in the end the script does not give errors, and does not show any message
root@Golodnyi-Work:# python ./bugzilla2youtrack.py
root@Golodnyi-Work:#
data does not fall into youtrack, in what could be the problem?
All projects will be imported. Are you sure? [y/n]y
bz_product_names : ['\xd0\x9e\xd1\x82\xd1\x87\xd0\xb5\xd1\x82\xd0\xbd\xd0\xbe\xd1\x81\xd1\x82\xd1\x8c Datacrypt', '\xd0\xad\xd0\x94\xd0\x9e Datacrypt', '\xd0\xa3\xd0\xa6', 'uslugi', '\xd0\x91\xd0\xb8\xd0\xbb\xd0\xbb\xd0\xb8\xd0\xbd\xd0\xb3', 'finance-book', '\xd0\x94\xd1\x80\xd1\x83\xd0\xb3\xd0\xb8\xd0\xb5', 'tahograf', 'Applet']
Creating issue link types
Creating issue link types finished
Creating custom fields
Creating custom fields finished
Creating project [ 2 ] with name [ Отчетность Datacrypt ]
Importing components for project [ 2 ]
Importing components finished for project [ 2 ]
Importing versions for project [ 2 ]
Importing versions finished for project [ 2 ] finished
Importing issues to project [ 2 ]
Traceback (most recent call last):
File "./bugzilla2youtrack.py", line 355, in <module>
main()
File "./bugzilla2youtrack.py", line 36, in main
bz_product_names, lambda issue: True)
File "./bugzilla2youtrack.py", line 306, in bugzilla2youtrack
batch = client.get_issues(product_id, from_id, from_id + max_count)
File "/var/www/admin-client.loc/www/youtrack-rest-python-library-master/python/bugzilla/bzClient.py", line 140, in get_issues
row["keywords"] = set([kw.strip() for kw in row["keywords"].split(",") if len(kw.strip())])
KeyError: 'keywords'
root@Golodnyi-Work:/var/www/admin-client.loc/www/youtrack-rest-python-library-master/python#
?
123 (199KB) Where status RESOLVED?
Import from Bugzilla operates in following way:
after import, all issues in YouTrack have default State - Submitted and both custom fields (which were inherited from Bugzilla) - Status and Resolution.
Resolved value can be found under the Status custom field.
Thank you.
Either I did not understand correctly the ideology of working with youtrack?
Possible inconvenience are connected with different State/Status/Resolution scheme in Bugzilla and in YouTrack.
Taking into account experience of using the import script, we decided to move to the current scheme and leave all fields in just created issues from Bugzilla. This way allows you to search for issues by previous Status and Resolution fields and values.
It's impossible to match states from these both issue-trackers objectively because YouTrack has only one State field and Bugzilla has two of them with almost similar values.
Now, you have all issues with original Bugzilla Statuses and Resolutions. If this it breaks you process now, you can just filter all issues by Status: Resolved, select all issues and apply batch command State: Fixed (start typing this command on issue list, command window will be called)
Let me know, if have any further questions.
Born the second question I want to put the system at mydomain.com / youtrack this is only possible through mod_proxy or redirect? I can not install on a specific address on port 80?
May I know how you solve this problem? I am getting the same error and unable to import my Bugzilla into YouTrack.