When I create a new issue, all the users are within the Assignee list.
I don't like having my clients within that list, especially when I'm creating an issue outside of their project.
Is there a way to either show only staff members, or at least prioritise/group them?
Robin Shen commented 2 years ago
You may use groovy script to return list of users applicable for issue assignment, for instance, member of certain group. etc. To do it:
Switch to Administration / Groovy Script and add a script to returned desired users. For instance below script returns list of users from dev group:
import io.onedev.server.OneDev
import io.onedev.server.entitymanager.GroupManager
def assignees = []
for (member in OneDev.getInstance(GroupManager.class).find("dev").members) {
assignees.add(member.name)
}
return assignees
Switch to Administration / Issue Setting / Custom Field and configure the Assignee field to specify Available Choices as Evaluate script to get choices and choose script created in step 1.
When I create a new issue, all the users are within the Assignee list.
I don't like having my clients within that list, especially when I'm creating an issue outside of their project.
Is there a way to either show only staff members, or at least prioritise/group them?