I have observed that when I have a new entry, for which I have set the value and the label, and I add the "visibleTo" entry,
namely: "maindirectory.visibleTo=Project-Leader;Project-Supervisors" for my two Roles types Project-Leader and Project-Sueprvisors, then this visibleTo entry is effectively not enforced because all roles in the issue can see the maindirectory.label and .value.
However, when I only put one of the roles, i.e maindirectory.visibleTo=Project-Leader , then it works, so it seems not to be due to the minus signs in the Role Names, but rather that this field cannot handle multiple entries? Or is my syntax with the semi-colon separator merely wrong?
i can confirm the behavior. it won't work with more than one role (see Line 71-77
My Logic won't check for more than one role.
I can imagine three solutions:
1. You create a feature request, but I can promise any due date (but at least several weeks/months)
2. You fork my repo, implement the logic, build your fork and run your own implementation within your jira instance
3. You fork my repo, implement the logic (under the BSD License), extend the TestCase (under the BSD License) to test the new logic (../src/test/java/com/osoboo/jira/metadata/MetadataViewerTest.java), create a pull request and it will be part of the Metadata for JIRA Plugin.