Hello, we need to restrict a user picker field to only show specific users based on a custom group field. Should be like this:
Every issue contains a group field GROUP which gets automatically set on its creation. Only people of these specific groups can access and transition an issue over all workflow steps. Every issue contains one group but there are ~50 different groups overall an issue can contain.
In one transition people need to chose a single user from the (scripted) user picker PROCESS OWNER based on the GROUP field above. So the (scripted) field should only show users that are part of the specific group, which is set in the issue.
Thanks in advance.
Normally, I'd recommend Behaviours and setFieldOptions() for something like this.
But that will only work on select fields. It doesn't work on User Picker fields.
There is no way that I'm aware of to tap into the built-in user picker fields.
So, one way to achieve this would be to have a plain text field and use a custom Select List Conversions with a custom REST api to return the list of users.
Another, simpler, approach would be to simply add a validator and check the user selection after the fact. Let the users pick from the full list, but if they pick someone not from the group, show a warning that "this user is invalid, please pick a user that belongs in the "xxx" group."
If the number of users is not too big, you could include a list of valid users in the validation error message.
Ok thanks for reply. That "hint" option will fit this request for the beginning.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the same we want to achieve in case of jira cloud. Then how it will possisble ???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.