Create a fragment script of type hide, with the idea that some panels for the functional components belonging to a certain group.
The problem is that it is executed for all users and not for the "Reader" group, which are the ones that do not need vision within the panels of the issue.
You should return true or false in your condition. You do not need the if statement. You should replace it with
return var
The problem is that it hides the panel for all users and I just want to hide it for the group Gab_restringido.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import com.atlassian.jira.component.ComponentAccessor
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def groupManager = ComponentAccessor.getGroupManager()
return !(groupManager.isUserInGroup(currentUser,"Gab_restringido"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.