Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting error while migrating issues one jira account another account by using jira library with pyt

mallikharjunamakkala12
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2023
       new_issue = target_jira.create_issue(fields=issue_fields)
       print(f"Issue '{new_issue.key}' created successfully! Issue ID: {new_issue.id}")
except Exception as create_issue_error:
       print(f"Failed to create issue in the target project: {create_issue_error}")



Traceback (most recent call last): File "
d:\python\JiraMigration\myenv\Lib\site-packages\jira\resources.py", line 193, in __getattr__ return self[item] # type: ignore ~~~~^^^^^^ TypeError: 'Project' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\python\JiraMigration\get_post_projects.py", line 137, in migrate_issues new_issue = target_jira.create_issue(fields=issue_fields) ^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\python\JiraMigration\myenv\Lib\site-packages\jira\resources.py", line 198, in __getattr__ raise AttributeError( AttributeError: <class 'jira.resources.Project'> object has no attribute 'create_issue' ('Project' object is not subscriptable) During handling of the above exception, another exception occurred: Traceback (most recent call last):

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events