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
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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