Hello,
I am new to JIRA and using the JIRA client in Python(3.7) for access.
I am stuck at the first step of authentication.
My code snippet is mentioned below.
#------Start-------------------
from jira import JIRA
import base64
server = 'https://ZZZZZ.atlassian.net'
options = {'server': server}
jira = JIRA(options, basic_auth=('xyz@gx.com','XXXXXXXXXXXXXXX')) #-----Ref--1
ticket = 'DDDD-1XXX7'
issue = jira.issue(ticket)
summary = issue.fields.summary
print('ticket: ', ticket, summary)
#-----End---------------------
At Ref--1 I ahve also tried using the encoded key as mentioned below.
endcoded_apikey = base64.b64encode(b'XXXXXXXXXXXXXXX').decode("utf-8")
but the result is always the same. I get response 401, unauthorized access. I have looked around several tickets for the root cause, but no progress.
I don't know which step I am missing in the above section. or anything in the admin section on the jira cloud.
Any help in the issue above is greatly appreciated.
Thanks in Advance
A