-
Notifications
You must be signed in to change notification settings - Fork 11
Add GitLab issue tracker to YouTrack migration script #3
base: master
Are you sure you want to change the base?
Conversation
- Adapted from github2youtrack.py - Tested and verified against GitLab 11.x, API v4, multiple projects with hundreds of real issues. - Includes migrating comments, but not attachments on comments yet. - Fixes a date format issue bug in cvs2youtrack.py by clipping milliseconds field out of date strings that come from GitLab. This shouldn't harm other migrators.
…top of the script.
|
Hi, was trying your script today. I downloaded the gitlab2youtrack.py and executed it by hand because it is still not merged. I installed the scripts and youtrack package both with pip first and patched the csv2youtrack.py afterwards according to this pull request. Yet i get an error exactly at this point: Any idea on that? P.S: Right, i had to update line line 260 of your code, as the youtrackutils.csvClient.FIELD_NAMES map doesn't seem to work. So i set the csv header to the real values used by the csv2youtrack script. |
|
Like year later with nobody touching it? No. I have no idea. it worked
100% when I submitted it.
Thanks.
…On Tue, Jun 4, 2019, 16:59 pyriand3r ***@***.***> wrote:
Hi, was trying your script today. I downloaded the gitlab2youtrack.py and
executed it by hand because it is still not merged.
I installed the scripts and youtrack package both with pip first and
patched the csv2youtrack.py afterwards according to this pull request. Yet
i get an error exactly at this point:
Traceback (most recent call last):
File "gitlab2youtrack.py", line 283, in <module>
main()
File "gitlab2youtrack.py", line 148, in main
csv2youtrack.csv2youtrack(params)
File "/home/gabriel/projects/gitlab/youtrack-python-scripts/youtrackutils/csv2youtrack.py", line 245, in csv2youtrack
importer.import_csv()
File "/home/gabriel/projects/gitlab/youtrack-python-scripts/youtrackutils/csv2youtrack.py", line 275, in import_csv
self.do_import(projects, new_projects_owner_login)
File "/usr/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 30, in do_import
self._import_issues(project_id)
File "/usr/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 76, in _import_issues
[self._to_yt_issue(issue, project_id) for issue in issues])
File "/usr/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 167, in _to_yt_issue
result.comments = [self._to_yt_comment(comment) for comment in self._get_comments(issue)]
File "/home/gabriel/projects/gitlab/youtrack-python-scripts/youtrackutils/csv2youtrack.py", line 289, in _to_yt_comment
result.created = self._import_config.to_unix_date(comment[1])
File "/home/gabriel/projects/gitlab/youtrack-python-scripts/youtrackutils/csv2youtrack.py", line 463, in to_unix_date
date, csvClient.DATE_FORMAT_STRING)
File "/usr/lib/python2.7/_strptime.py", line 335, in _strptime
data_string[found.end():])
ValueError: unconverted data remains: 2019-05-24T09:25:07+02:00
Any idea on that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AEHXOPUHJXTE3CXH2HQORVTPYZ7LZA5CNFSM4FRASX32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW43E4Q#issuecomment-498709106>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEHXOPQ3SSO2IHYEFVVW2J3PYZ7LZANCNFSM4FRASX3Q>
.
|
|
really bad to see that nobody review it and merge it ;( |
|
Hey, I tried the script today and it worked fine when exporting issues from GitLab. Any idea where this might be coming from? |
Added the GitLab issue tracker migration script.