Hi All,
In our Jira project we developed few custom plugin. These plugins are visible in user installed add on section and also after successful uploading of jar files they are visible on the menubar as shown in attached pic. But now we have a requirement to hide this custom plugin from a certain set of users. How can we achieve this. Currently this plugin is visible for all users. We want to restrict the accessibility of this plugin from certain users/group. Please pour in your suggestions and solutions. Thanks in advance !
You need to change the code of your plugin. You should put conditions of Web sections and Web Items
It would be something like this
<web-panel name="IssueViewersWP" i18n-name-key="issue.viewers.wp.name" key="issue-viewers-wp" location="atl.jira.view.issue.right.context" weight="2">
<description key="issue.viewers.wp.description">The IssueViewersWP Plugin</description>
<context-provider class="ru.matveev.alexey.jira.plugin.webpanel.IssueViewersWebPanel"/>
<conditions type="AND">
<condition class="ru.matveev.alexey.jira.plugin.webpanel.IssueViewersDetailedViewCondition"></condition>
</conditions>
<resource name="view" type="velocity" location="templates/issueviewers.vm"/>
<label key="issue.viewers.wp.name"/>
</web-panel>
In the condition class you provide all the logic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey, we tried in a different way where in options are still visible to user but upon clicking those options a new VM is rendered which shows access restricted page.
As shown below. Thanks for your reply !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.