Using JIRA 7.3.6 and Adaptavist ScriptRunner v5.1.6.
I want to prevent the Assignee field from being changed except by Project Administrators.
I found this article in the Adaptavist site about making a field read-only, and applied that to the Assignee field.
https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/field-readonly-except-role.html
I then tried to change the Assignee on the applicable issue while logged in as a user that is not an Administrator for the project.
When I clicked on the Assign button in the Issue Details view, the Assignee field was indeed disabled.
However, I was able to click on the Assign To Me link, and the Assignee on the issue changed.
Why doesn't the Behaviour affect the Assign To Me functionality?
Is there another way to accomplish this?