My jira rest API script stopped running recently (it is set to run every night). When i tried to run it manually i got an error in the following line of code:
# Basic Jira login information
jira = JIRA({'server': "https://xxxx.atlassian.net/"}, basic_auth=("xxxxx@xxxxx.com", "xxxxxx"))
I looked up if any changes were made to the authorization method but i couldn't find anything. Can someone please help?
Best regards
Mussab
Edit: What is the equivalent of that line of code in the 'api token' authentication method?
I've tried:
jira = requests.get('https://xxxxx.atlassian.net/', auth=('User@name.com', 'API_TOKEN')) But I'm getting:
AttributeError: 'Response' object has no attribute 'projects'
in:
projects = jira.projects()