Not able to import issues to another JIRA project
Opened this issue · 0 comments
I have tried with export option . it was working fine as expected , however it is not working for import parameter. Kindly help.
Output:
python project_tool.py import YOG NDT
Traceback (most recent call last):
File "project_tool.py", line 73, in
new_issue = jira_instance.create_issue(fields=issue_dict)
File "/usr/local/lib/python2.7/site-packages/jira/client.py", line 1107, in create_issue
r = self._session.post(url, data=json.dumps(data))
File "/usr/local/lib/python2.7/site-packages/jira/resilientsession.py", line 154, in post
return self.__verb('POST', url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/jira/resilientsession.py", line 147, in __verb
raise_on_error(response, verb=verb, **kwargs)
File "/usr/local/lib/python2.7/site-packages/jira/resilientsession.py", line 57, in raise_on_error
r.status_code, error, r.url, request=request, response=r, **kwargs)
jira.exceptions.JIRAError: JiraError HTTP 400 url: http://JIRAURL:8080/rest/api/2/issue
text: Operation value must be a string
response headers = {'X-AUSERNAME': 'admin', 'X-AREQUESTID': '386x225x1', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Content-Security-Policy': "frame-ancestors 'self'", 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'X-Seraph-LoginReason': 'OK', 'Vary': 'User-Agent', 'X-ASESSIONID': 'mxwfxw', 'Connection': 'close', 'Cache-Control': 'no-cache, no-store, no-transform', 'Date': 'Thu, 02 Jan 2020 06:26:12 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Type': 'application/json;charset=UTF-8', 'X-ASEN': 'SEN-L14709393'}
response text = {"errorMessages":[],"errors":{"description":"Operation value must be a string"}}