I use post function and scriptrunner to run groovy script when the issue is closed. Initially the script was used with Jira server, I don't know that when I migrate the code to Jira cloud, how could it work. This is the libraries to be used:
@grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1' )
import groovy.grape.Grape
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
//== END HTTPBUILDER IMPORTS
import javax.net.ssl.X509TrustManager
import javax.net.ssl.SSLContext
import java.security.cert.X509Certificate
import javax.net.ssl.TrustManager
import java.security.SecureRandom
import org.apache.http.conn.ssl.SSLSocketFactory
import org.apache.http.conn.scheme.Scheme
import org.apache.http.conn.scheme.SchemeRegistry
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.HttpRequest;
import org.apache.http.protocol.HttpContext;
import groovyx.net.http.HTTPBuilder
import org.apache.log4j.Logger
If I want it to work with Jira cloud, which libraries are still compatible with?