Hi,
I have been banging my head for a couple of days now and have not been able to access Jira through API using Atlassian or Jira python library. I have created a personal token which I use to pass to the server but no luck. I see Many posts here about 401 error but have not found a fix. Can anybody here help?
Here is my code:
1) I installed library - pip install atlassian-python-api (same if I wanted to use Jira library)
2) Access the information:
from atlassian import Jira
import json
username = 'XXXX@XXXX.com'
api_token = "AAAAAAAAAABqze77sUyxKPCBfmZTWZ6"
jira = Jira(url=jira_url, username=username, password= api_token,cloud=True)
results = {}
boards= jira.get_issue(issue_id_or_key="COES-10")
3) I get:
"name": "HTTPError",
"message": "Unauthorized (401)",