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.
Hi @Zachi Meyer I'm going out on a limb here, because I'm not no subject matter expert on DVCS; however, I do recall seeing some code snippet (in some far reaches of my brain) where the applicationType for Github Enterprise is "githube". I'm not sure if that will solve your problem, but that is AFAIK the correct applicationType.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's correct. I'll dig around a bit to see if there's a place where this needs to be documented.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.