Accessing jira via python

Saajan Kumar Sahu March 30, 2023

Hello Team,

 i am currently tring to access jira elements (Bugs / task's ) via python and below is the code which i am using:-

from jira import JIRA

jira_options = {
'server': 'https://netradyne.atlassian.net'
}
jira = JIRA(options=jira_options, basic_auth=())

issue = jira.issue('CN-663')
print(issue.fields.project.key) # 'JRA'

 

When running the above script , the below error is seen:- 

response headers = {'Date': 'Thu, 30 Mar 2023 12:26:38 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '47d4b2144a9c769fdab81bab8cf3eea0', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Encoding': 'gzip', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '9fc110a50905cfa7', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Transfer-Encoding': 'chunked'}
response text = {"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}

 

 

 

Can someone help me out in resolving the issue

0 answers

Suggest an answer

Log in or Sign up to answer