VisibleTo not working when giving more than one Role entry

Description

Hello

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?

Thanks
Andre

Environment

None

Activity

Show:
Andreas Spall (evolu.software)
February 20, 2017, 8:43 PM

Hi Andre,

i can confirm the behavior. it won't work with more than one role (see Line 71-77
https://bitbucket.org/aspall/jira-metadata-plugin/src/40bbe30a1189b10b27571d467d919136e2dbc008/src/main/java/com/osoboo/jira/metadata/viewer/MetadataViewerContextProvider.java?at=master&fileviewer=file-view-default ).
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.

Kind regards,
Andreas

Answered

Assignee

Andreas Spall (evolu.software)

Reporter

Andre Wilmes

Labels

None

Priority

Major
Configure