taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

Can't set AuthorId #329

Closed blazenn12 closed 4 years ago

blazenn12 commented 5 years ago

Hi, i want to create issues with various AuthorId. But every created issue is posted by my redmine manager.

RedmineManager  redmineManager = RedmineManagerFactory.createWithApiKey("myRedmineUri", "myApiAcessKey");

Issue issue = new Issue(redmineManager .getTransport(), projectId)
        .setSubject("testSubject")
        .setDescription("testDescription")
        .setAuthorId(5);
        .create();

Pls, tell me whats wrong?

alexeyOnGitHub commented 4 years ago

according to this page https://www.redmine.org/projects/redmine/wiki/Rest_Issues#Creating-an-issue , Redmine REST API ignores this parameter. I will update javadoc on Issue class