Hi Iragudo,
I am trying to add comments to my Jira ticket through postman where I am getting error as 404 - Not found. I am using the below code in postman by giving my id and password in authorization:
url = "https://rbcjira.fg.rbc.com:8443/rest/api/3/issue/AALAB-36/comment"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps( {
"body": {
"content": [
{
"content": [
{
"text": "Hello",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
},
"visibility": {
"identifier": "Administrators",
"type": "role",
"value": "Administrators"
}
} )
response = requests.request(
"POST",
url,
data=payload,
headers=headers,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
Am I using the correct API?