Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save to a file? #25

Open
ParthBarot-BoTreeConsulting opened this issue Jun 1, 2018 · 0 comments
Open

How to save to a file? #25

ParthBarot-BoTreeConsulting opened this issue Jun 1, 2018 · 0 comments

Comments

@ParthBarot-BoTreeConsulting
  • Redmine to JIRA Importers plugin version:
  • Python version: 3.4
  • Operating System: Linux 64 bit

Description

Trying to export redmine issues, but it does not seem to be creating a new file.

What I Did

  1. I have updated the config.py for URL and key
  2. Was facing an issue with custom field, this seems to be an error of the redminelib package
>>> cf = a.custom_field.all()
>>> cf.length
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'ResourceSet' object has no attribute 'length'
>>> len(cf)


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/redminelib/resultsets.py", line 131, in __len__
    return sum(1 for _ in self)
  File "/usr/local/lib/python3.4/dist-packages/redminelib/resultsets.py", line 238, in __iter__
    return (self.manager.to_resource(resource) for resource in super(ResourceSet, self).__iter__())
  File "/usr/local/lib/python3.4/dist-packages/redminelib/resultsets.py", line 107, in __iter__
    self._resources, self._total_count = self.manager.request(True)
  File "/usr/local/lib/python3.4/dist-packages/redminelib/managers.py", line 56, in request
    return self.redmine.engine.bulk_request('get', self.url, self.container, **self.params)
  File "/usr/local/lib/python3.4/dist-packages/redminelib/engines/base.py", line 88, in bulk_request
    response = self.request(method, url, params=dict(params, limit=limit or self.chunk, offset=offset))
  File "/usr/local/lib/python3.4/dist-packages/redminelib/engines/base.py", line 75, in request
    return self.process_response(self.session.request(method, url, **kwargs), return_raw)
  File "/usr/local/lib/python3.4/dist-packages/redminelib/engines/base.py", line 154, in process_response
    raise exceptions.AuthError
redminelib.exceptions.AuthError: Invalid authentication details
  1. So, removed the code to read custom fields to fix the above.
  2. then, ran redmine2jira --filter "issue_id=7002" my_issues.csv. But, this file is not created.

I found that the output argument is read but didn;t find any code for creating a file.

I installed using pip command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant