Hi, I’m trying to use this script from adaptavist library: https://library.adaptavist.com/entity/create-a-tempo-account-using-the-rest-api
But the "credentials" variable appears to be null after the following code, so i cant make the Basic authentication:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.properties.APKeys
import groovyx.net.http.ContentType
import groovyx.net.http.EncoderRegistry
import groovyx.net.http.HttpResponseDecorator
import groovyx.net.http.RESTClient
final String userPropertyKey = "jira.meta.basicAuthCreds"
def loggedInUser = ComponentAccessor.jiraAuthenticationContext.loggedInUser
def credentials = ComponentAccessor.userPropertyManager.getPropertySet(loggedInUser).getString(userPropertyKey)
def baseUrl = ComponentAccessor.applicationProperties.getString(APKeys.JIRA_BASEURL)