Hello! I'm trying to do a JQL search through python, but having problems. I've successfully used the API to access a single issue, so I know the authentication is okay.
This works in my browser: https://<base-url>.atlassian.net/rest/api/3/search?jql=project = "CHOR" AND due >= "2025-04-07" AND due <= "2025-04-13" ORDER BY created DESC
And this is my python code (I simplified the JQL in case that was the issue):
searchURL = 'https://<base-url>.atlassian.net/rest/api/3/search'
jql = 'project = "CHOR"'
urlJQL = searchURL + '?jql=' + jql
auth = HTTPBasicAuth(email, token)
headers = {
"Accept": "text/html,application/json",
"Content-Type": "application/json"}
response = requests.request( "POST", urlJQL, headers=headers, auth=auth )
And the response I get is:
{'errorMessages': ['No content to map to Object due to end of input']}Can somewhat help me figure out what I'm missing?