Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Abstract

This code snippet checks that the current user is the member of a specific group.

...

The output of the code is a boolean value (true or false) which you could use to conditionally execute a Post-function/Condition/Validator or Unlink issues, for example: To assign the issue to the current user only when the user belongs to the "jira-administrators" group.

Code Block
languagegroovy
linenumberstrue
ComponentAccessor.getGroupManager().isUserInGroup(currentUser, "jira-administrators")

...

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
sortmodified
reversetrue
cqllabel in (= "jmwe-servergroovy" ,"jmwe-groovy")and space = "JMWE"