Good morning community:
I have been trying to modify the creation date of a comment, and I have not seen from the API how to do it.
Do you know if it can be done from CLOUD?
I do this but not works... 
def issueKey = 'XXXXXXX'
def fechaNew = '2020-10-07T16:24:18.943+0200'
//result.body.comments.created
def result = put("/rest/api/2/issue/" + issueKey +"/comment")
.queryString("overrideScreenSecurity", Boolean.TRUE)
.header('Content-Type', 'application/json')
.body([
created : fechaNew
])
.asString()
if (result.status >= 200 || result.status <= 210) {
return 'Success'
} else {
return "${result.status}: ${result.body}"
}
or
def issueKey = 'XXXXXXXX'
def fechaNew = '2020-10-07T16:24:18.943+0200'
//result.body.comments.created
def result = put("/rest/api/2/issue/" + issueKey +"/comment")
.queryString("overrideScreenSecurity", Boolean.TRUE)
.header('Content-Type', 'application/json')
.body([
comments: [
created : fechaNew
]
])
.asString()
if (result.status >= 200 || result.status <= 210) {
return 'Success'
} else {
return "${result.status}: ${result.body}"
}