Hi
I'm trying to send notification with following code but
def htmlMessage = writer.toString()
def textMessage = new XmlSlurper().parseText(htmlMessage).text()
resp = post("/rest/api/2/issue/${claim.key}/notify")
.header("Content-Type", "application/json")
.body([
subject: "Ticket " +claim.key + " was opened",
textBody: textMessage,
htmlBody: htmlMessage,
to: [
groups: myissue["customfield_101776"]
]
]
)
.asString()
return resp;
but resp return me
{ "delegate": {
"headers": {
"Transfer-Encoding": [
"chunked"
],
"server": [
"AtlassianProxy/1.15.8.1"
],
"Connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=315360000; includeSubDomains; preload"
],
"Date": [
"Fri, 20 Sep 2019 14:53:17 GMT"
],
"atl-traceid": [
"023236438442e060"
],
"x-xss-protection": [
"1; mode=block"
],
"x-content-type-options": [
"nosniff"
],
"x-arequestid": [
"f9f91337-7218-4977-9315-b435aa11312d"
],
"x-aaccountid": [
"557058%3Adaaabbe0-31e1-4ff8-b6cf-bf8128eca836"
],
"correlationId": [
"22373a72-750e-4f18-adb0-f989a0702a03"
],
"timing-allow-origin": [
"*"
],
"cache-control": [
"no-cache, no-store, no-transform"
],
"Content-Type": [
"application/json;charset=UTF-8"
]
},
"statusText": "Server Error (530)",
"parsingError": {
"present": false
},
"body": "{\"errorMessages\":[\"Internal server error\"],\"errors\":{}}",
"status": 530
},
"headers": {
"Transfer-Encoding": [
"chunked"
],
"server": [
"AtlassianProxy/1.15.8.1"
],
"Connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=315360000; includeSubDomains; preload"
],
"Date": [
"Fri, 20 Sep 2019 14:53:17 GMT"
],
"atl-traceid": [
"023236438442e060"
],
"x-xss-protection": [
"1; mode=block"
],
"x-content-type-options": [
"nosniff"
],
"x-arequestid": [
"f9f91337-7218-4977-9315-b435aa11312d"
],
"x-aaccountid": [
"557058%3Adaaabbe0-31e1-4ff8-b6cf-bf8128eca836"
],
"correlationId": [
"22373a72-750e-4f18-adb0-f989a0702a03"
],
"timing-allow-origin": [
"*"
],
"cache-control": [
"no-cache, no-store, no-transform"
],
"Content-Type": [
"application/json;charset=UTF-8"
]
},
"status": 500,
"statusText": "Server Error (530)",
"parsingError": {
"present": false
},
"body": "{\"errorMessages\":[\"Internal server error\"],\"errors\":{}}"
}
Error 530, any suggestion for the reason?