Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 - ELFAPP
Atlassian Partner
April 29, 2021

Hi @srinivas kolaparthi 

Why the comment

#params=query,

 on the response?

Prince Nyeche - ELFAPP
Atlassian Partner
April 29, 2021

Remove it and see what happens!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events