taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
270 stars 163 forks source link

I can't update issue. #323

Closed Kejam closed 5 years ago

Kejam commented 5 years ago

Hello. I use new version framework, java 8, idea 2018.3, ubuntu 18. When i try to update issue i catch exception:

java.lang.NoSuchMethodError: org.json.JSONWriter.(Ljava/io/Writer;)V

example code: https://github.com/Kejam/simpleTelegramBot

`@Override

public boolean approvedIssue(Status status, int id) {
    try {
        logger.info("Try to change issue {} to {}", id, status);
        issue = issueManager.getIssueById(id);
        issue.setSubject(status.toString());
        issue.update();
    } catch (RedmineException e) {
        logger.error("Error change issue {} to {}", id, status);
        e.printStackTrace();
    }
    return true; // add check after update issue.
}`
Kejam commented 5 years ago

i've solved problem, idea use json api from telegram api...