Jira search_issues error returns "project not identified"

44 Views Asked by At

Trying to extract the data using Jira search issues but it's not identifying the project. Tried to check if it was an authentication error but it seems to be working fine. It always gives back the same error saying "XYZ not identified as project".

from jira import JIRA 


jira_server = "https://preqin.atlassian.net" # jira server link
api_token = "" # jira api token 
account_id = "" # jira account id 

# authentication options 
options = {
           'server': jira_server, 
           'check_update': False, 
           'verify': True, 
           'get_server_info': False, 
           'oauth': { 
               'access_token': api_token, 
               'access_token_secret': account_id, 
             }
          } 

jira = JIRA(options) # connect to Jira
issues = jira.search_issues('project = "projectABC"') # retrieve issues 

print(issues) # print issue details for issues in issues

I've checked the project name and everything but I'm not able to rectify it.

Tried giving the shortcut for the project, the full name, with and without brackets and everything but couldn't fix it.

0

There are 0 best solutions below