Is there a more elegant way accomplish what I am attempting?
#if ($userAccessor.hasMembership('jira-users', $helper.action.remoteUser.name))
alert('you are obviously in jira-users group');
alert('apparently you are not in the jira-users group');
#if ($authcontext.loggedInUser.name) #if ($jiraUserUtils.getGroupNamesForUser($authcontext.loggedInUser.name).contains('releasers')) <script> alert('user is in releasers'); </script> #else <script> alert('user is not in releasers') //add some code to disable elements that enable release of a version, like the Release button </script> #end #end
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot