Seems like setFieldOptions() method does not work on the assignee (or any user fields) to limit or restrict the users available in the list.
Is there any other way to achieve this using behaviours?
Not that I am aware of. I think in big part because of how this field behaves (dynamic rest call rather than pre-loaded options).
The best you can do is validate the user input after the fact and set an error if the selected user does not match your rules.
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.