Deletes a comment. This example deletes comment (id=10019) for the issue with key = "SCRUM-15". A successful response is indicated by a 204 response code with no response body.
curl --request DELETE --user jira@example.com:JIRA_API_TOKEN \
--header 'Accept: application/json' \
--url 'https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15/comment/10019'
import sys
import chilkat
rest = chilkat.CkRest()
# URL: https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15/comment/10019
bTls = True
port = 443
bAutoReconnect = True
success = rest.Connect("your-domain.atlassian.net",port,bTls,bAutoReconnect)
if (success != True):
print("ConnectFailReason: " + str(rest.get_ConnectFailReason()))
print(rest.lastErrorText())
sys.exit()
rest.SetAuthBasic("jira@example.com","JIRA_API_TOKEN")
rest.AddHeader("Accept","application/json")
sbResponseBody = chilkat.CkStringBuilder()
success = rest.FullRequestNoBodySb("DELETE","/rest/api/2/issue/SCRUM-15/comment/10019",sbResponseBody)
if (success != True):
print(rest.lastErrorText())
sys.exit()
respStatusCode = rest.get_ResponseStatusCode()
if (respStatusCode >= 400):
print("Response Status Code = " + str(respStatusCode))
print("Response Header:")
print(rest.responseHeader())
print("Response Body:")
print(sbResponseBody.getAsString())
sys.exit()