jira 400 error

srinivas kolaparthi April 29, 2021
url = "https://xxxx.atlassian.net/rest/api/3/search"
auth = HTTPBasicAuth("xxxxxxx", "yyyyyyyyyyy")


headers = {
"Accept": "application/json"
}

query = {
'jql': 'project = ABCD AND issuetype in (StandardIssueTypes(),Bug) AND status
in (Open,closed,"Ready for Deployment")'
}


response = requests.request(
"GET",
url,
headers=headers,
#params=query,
auth=auth

)
resdata = json.dumps(json.loads(response.text))
if response.status_code != 200:
print('Status:', response.status_code, 'Headers:', response.headers,
'Error Response:', response.json())
exit()
else:
print('Server Connected.Please wait.....')



 

1 answer

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2021

Hi @srinivas kolaparthi 

Why the comment

#params=query,

 on the response?

Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2021

Remove it and see what happens!

Suggest an answer

Log in or Sign up to answer