I am new to Python in connecting the Jira server which is hosted on-premise, I want to connect and export the CSV file for our project issues. I have written the below code and executed on command line but it is not working. Can anyone please help me in resolving this?
from jira import JIRA
import requests
jira = JIRA(basic_auth=('user@mail.com', 'password123'), options={'server': 'https://jiraaccount.domain.com'})
issue = jira.issue('ID-544')
print(issue.fields.project.key)
print(issue.fields.issuetype.name)
----------------This code throws the below error----------------
<!-- HTTPError403 -->
<div class="aui-page-panel" ><div class="aui-page-panel-inner">
<main role="main" id="main" class="aui-page-panel-content" >
<div class="aui-page-header" ><div class="aui-page-header-inner">
<div class="aui-page-header-main" >
<h1>Forbidden (403)</h1>
</div>
</div></div>
<div class="aui-message aui-message-warning warning">
<p>Encountered a <code>"403 - Forbidden"</code> error while loading this page.</p>
<p>Basic Authentication Failure - Reason : AUTHENTICATION_DENIED</p>