private static void printCurrentUser(RedmineManager mgr) throws Exception { User currentUser = mgr.getCurrentUser(); logger.debug("user="******"*****@*****.**"); mgr.update(currentUser); logger.debug("updated user"); User currentUser2 = mgr.getCurrentUser(); logger.debug("updated user's mail: " + currentUser2.getMail()); }
private static void changeIssueStatus(RedmineManager mgr) throws IOException, AuthenticationException, RedmineException, NotFoundException { Issue issue = mgr.getIssueById(1771); issue.setSubject("new"); mgr.update(issue); }