I'm trying to use the REST API to add an attachment to an issue in JIRA. I've been following the documentation, but I am getting response code 405 when I run the following code (this code is mentioned in the Jira Documentation).
url = "http://newp.atlassian.net/rest/api/3/issue/NP-4/attachments/"auth = HTTPBasicAuth("example@mail.com", "<api-token>")headers = {"Accept": "application/json"}response = requests.request("POST", url, headers=headers, auth=auth)print(response)
Can anyone please help?
I am also facing same issue, Please let me know if you find some solution .
It looks like you're new here. Sign in or register to get started.