Hello,
I am looking for a possibility to provide editable rights on one custom field {Sprint} for only one user/group while editing issues on one project. Any groovy script/behavior would be helpful since we have Script Runner plugin in our instance.
What I Needed:
JIRA Version: 7.4.4
Script Runner: 5.1.0
Regards,
Manu
Scriptrunner/behaviour can't GRANT permission if it's denied by the permission scheme. The users' can't even open the edit screen (or do inline edits).
You would have to open up the permission in the permission scheme to allow Edit Issue for watchers, then use behavior to set ALL OTHER fields to read-only.
This means of course, that your watchers (if they are technical) would be able to change ANY fields via REST API since those are not intercepted by Behaviour.
The only way the scriptrunner can allow edits to a certain field would be to bypass the edit screen altogether. You could do that with a custom rest api or perhaps a custom script listener.
Perhaps a simpler solution is to leverage the workflow (no scriptrunner involvement).
Create a global transition (from any state to any state) called "Update Sprint". Provide a screen with only the sprint field, and open up the conditions to allow watchers to execute it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.