Hello everyone. I have a simple postfunction that creates a channel in messanger (in our case Cisco Spark) , adds members etc. But I want to create a room with a name and ID of issue. For example , TEST-5521 . For this purposes I use issue.getKey() (that return string). But I see
No such property: issue for class: groovyx.net.http.HTTPBuilder
It's a part of my code
def http = new HTTPBuilder(targetUrl)
def result = http.request(POST) {
http.ignoreSSLIssues()
uri.path = '/v1/rooms'
requestContentType = URLENC
body = [title:issue.getKey()]
headers.'Authorization' = "Bearer " + access_token.toString()
headers.'Accept'='application/json'
response.success = { resp, JSON ->
return JSON
}
}