I'm currently intending to use the Jira API to pull data for more robust reporting. I am using Python 3.6, and the Python requests library.
Currently this works:
r = requests.get(jira_url_critquery, auth=('[username]','[password]'))
But I'd rather use the API token I've created. I've tried several different variations, but so far nothing has worked.
Here is an example of a url which works (with the username/password).
https://[our company account].atlassian.net/rest/api/2/search?jql=assignee=[my jira username]
Any thoughts?