Hi,
We have script field that getting repository info from stash, and we're examine the option to move to GitHub.
We're using JIRA-server and connect with GitHub enterprise through DVCS connection
I tried to change "applicationType=github" instead of "stash" and I get error:
2022-03-15 12:29:33,154 WARN [runner.ScriptBindingsManager]: response: {"errors":[],"detail":[]}
This is the code of the script field that I'm using to get repository information:
GetMethod method = new GetMethod(baseUrl + "/rest/dev-status/1.0/issue/detail?issueId=" + issue.getId() + "&applicationType=github&dataType=pullrequest");
log.warn "method: $method"
Credentials credentials = new UsernamePasswordCredentials("[user]","[password]");
client.getParams().setAuthenticationPreemptive(true);
client.getState().setCredentials(AuthScope.ANY, credentials);
client.executeMethod(method);
def response = method.getResponseBodyAsString()
method.releaseConnection();
log.warn "response: $response"
Thanks.