taskadapter / redmine-java-api

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

Unable to get default assignee from project #333

Open psh-axelor opened 4 years ago

psh-axelor commented 4 years ago

Hello, I want to get issue's default assignee id/mail which is set in project(Project -> Settings -> Default assignee) But I am not able to get it from bean(e.g. redmineProject.getDefaultAssignee..) or any managers

Can you please tell me how to get it?

Thank you

alexeyOnGitHub commented 4 years ago

Redmine uses "Issue Categories" inside Projects to define default assignees. see https://www.redmine.org/projects/redmine/wiki/Rest_IssueCategories take a look at https://github.com/taskadapter/redmine-java-api/blob/master/src/main/java/com/taskadapter/redmineapi/bean/IssueCategory.java

if you do not see assignee info in Issue Category responses, feel free to debug and submit a fix for your Redmine version.

psh-axelor commented 4 years ago

Redmine uses "Issue Categories" inside Projects to define default assignees. see https://www.redmine.org/projects/redmine/wiki/Rest_IssueCategories take a look at https://github.com/taskadapter/redmine-java-api/blob/master/src/main/java/com/taskadapter/redmineapi/bean/IssueCategory.java

if you do not see assignee info in Issue Category responses, feel free to debug and submit a fix for your Redmine version.

Hello, Issue category is a different thing. What I need is id/mail of default assignee from Project -> Settings -> Default assignee. By using this it is possible to set assignee without creating or selecting category in issue.

Thank you for your reply

alexeyOnGitHub commented 4 years ago

gotcha. I do not see assignee info in Redmine REST API docs: https://www.redmine.org/projects/redmine/wiki/Rest_Projects feel free to submit a proposal to Redmine developers to add that field to REST API (https://www.redmine.org/projects/redmine/issues), then submit a PR for this Java library to use the field.