Hello! I'm using the JIRA library to collect information about all tickets.
Here is my authorization:
jira = JIRA(options= {'server': 'https://xxx.xx'}, token_auth = 'yyy') And here is my code.
issues = []
for i in range(0, total, 1):
try:
tikets = jira.search_issues(JQL, maxResults=1, startAt=i)
for keyid in range(len(tikets)):
key_name = str(tikets[keyid])
issue = jira.issue(key_name, expand='issuelinks,issuetype')
x = {}
x['ID'] = key_name
x['issue_created'] = issue.fields.created
x['project'] = issue.fields.project.name
issues.append(x)
except Exception as e:
print(key_name)
print(f"Ошибка: {e}")
continue
The code works well on almost all tickets. However, several receive an error 401 - unauthorized. At the same time, I can view these tickets in Jira and receive information through Postman. What could be the problem?