We want to have a specific custom field "Extended visibility" with two values: "Open" and "Restricted".
Our need is the following for one project:
- If the value of the field is "Open" then anyone should be able to access the issue
- If the value is "Restricted", then only the reporter, the assignee, a custom field "Responsible" and a specific group ("SAI") are allowed to see the issue
Is there a way to do this using ScriptRunner?