Created
August 11, 2016 01:01
-
-
Save alainlompo/1f75aa397f35095ffd3d52ce10f70326 to your computer and use it in GitHub Desktop.
Apprehending the JRJC with (version jam) caution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URI jiraServerUri = new URI("/api/issues/v1/bahnof"); | |
final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); | |
final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "admin", "admin"); | |
public RestJiraService() throws URISyntaxException { | |
} | |
public void snippet1(JiraRestClient restClient) { | |
Issue issue = restClient.getIssueClient().getIssue("TST-1").claim(); | |
} | |
public void snippet2(JiraRestClient restClient) throws IOException { | |
final Issue issue = restClient.getIssueClient().getIssue("TST-9").claim(); | |
// TODO: do some thing with the issue | |
restClient.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment