I am having some problems with this script, hopefully somebody can help me here.
First problem is that it tries to create a subsystem even if it already exists in which case it fails. It would be much more helpfull to check first and create only if it's not there!
Second problem is much more serious because it does not actually import any issues and fails with the following:
[14:21:48] dmitry:~/youtrack-remote-api/python $ python csv2youtrack.py http://youtrack.jetbrains.net [user password projectid projectname csvfile]
Traceback (most recent call last):
File "csv2youtrack.py", line 378, in
File "csv2youtrack.py", line 23, in main
csv2youtrack(target_url, target_login, target_password, project_id, project_name, csv_file_path)
File "csv2youtrack.py", line 216, in csv2youtrack
File "/Users/dmitry/youtrack-remote-api/python/youtrack/connection.py", line 185, in importUsers
return self._reqXml('PUT', '/import/users', xml, 400).toxml()
File "/Users/dmitry/youtrack-remote-api/python/youtrack/connection.py", line 47, in _reqXml
response, content = self._req(method, url, body, ignoreStatus)
File "/Users/dmitry/youtrack-remote-api/python/youtrack/connection.py", line 40, in _req
raise youtrack.YouTrackException(url, response, content)
youtrack.YouTrackException: Error for [/import/users]: 403: Forbidden: You must be administrator.
I am administrator for this project, in fact this script creates a subsystem just fine, but for some reason it fails on importing issues.