Im new to python and trying to create simple script that will creates new issue in JIRA.
Not sure what's wrong in my code.
from jira.client import JIRA
options={'server': 'https://jira.my_jira.com'}
jira=JIRA(options,basic_auth=('user', 'pass'))
root_dict = {
'project' : { 'key': 'project_name' },
'summary' : 'Test auto created issue',
'description' : 'Ignore this. will be deleted shortly',
'issuetype' : { 'name' : 'Task' },
}
my_issue= jira.create_issue(fields=root_dict)
The error is gives
JIRAError: HTTP 400: "Account is required." https://jira.my_jira.com/rest/api/2/issue
Could someone advice what's wrong?