GroovyHttpClient Not working for Jira

Hi,

I am trying to use GroovyHttpClient to make a GET call in Exalate on Jira Cloud but it gives me the following error :

Unable to perform the request GET https://api.atlassian.com/jsm/assets/workspace/def54b2e-b9c9-4888-b912-4a23b39002a6/v1/object/1 with body: ```null``` , please contact Exalate Support: No such property: JiraClient for class: jcloudnode.services.jcloud.hubobjects.NodeHelper

Here’s the code that I am using :

String key = issue.key
def result = httpClient.get("/rest/api/latest/issue/"+"$key")
def workspaceId = ("${result.fields."customfield_10087".workspaceId}".replace("[","").replace("]",""))
def objectId = ("${result.fields."customfield_10087".objectId}".replace("[","").replace("]",""))
def USER = "yyyy"
def token = "xxxx"

//def jc = new JiraClient(httpClient) 
def res = new GroovyHttpClient(nodeHelper)
.http(
"GET",
"https://api.atlassian.com/jsm/assets/workspace/${workspaceId}/v1/object/${objectId}",
null,
[
"Content-type" : ["application/json"],
"Authorization" : ["Basic ${(USER+":"+token).bytes.encodeBase64().toString()}".toString()]
]
)
def js = new groovy.json.JsonSlurper()
def jsonRes = js.parseText(res)
replica."Asset information" = jsonRes.label 

I am pretty sure this worked in the past.

My Exalate Version is 5.27.0.

Any thoughts please?

Thanks, Dhiren

Hi and welcome to the Exalate Community!

Thanks for sharing your question or insight, we appreciate your contribution.

A member of the Exalate team or community will review this post and respond as soon as possible.

In the meantime, feel free to explore related topics or join other conversations. We’re glad to have you here!