Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get default assignee from project #333

Open
psh-axelor opened this issue Jan 8, 2020 · 3 comments
Open

Unable to get default assignee from project #333

psh-axelor opened this issue Jan 8, 2020 · 3 comments
Labels

Comments

@psh-axelor
Copy link

psh-axelor commented Jan 8, 2020

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

@psh-axelor psh-axelor changed the title Unable to get/set default assignee for project Unable to get default assignee from project Jan 8, 2020
@alexeyOnGitHub
Copy link
Member

alexeyOnGitHub commented Jan 8, 2020

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
Copy link
Author

psh-axelor commented Jan 9, 2020

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants