This function checks if a user or group of users are members of a group.

Multiple user names can also be provided in a comma-separated list of user names, group names or role names. In that case, the function will return true only if all users in the list, groups of the list, and in the roles of the list, are in the given project role for the current project.


isInGroup(users, group) #Output: Boolean



Parser expressionDescription


isInGroup(%{issue.assignee}, "jira-developers")


The function returns true if the assignee is in group jira-developers.




Parameters used in this function

ParameterInput (data type)Description
users

Text containing a valid user, group or project role name.
group

Text containing a valid Jira group.



This function returns a



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

let users = issue.watchers;
users.map(u=>u.getProjectRoles(issue.project).length!=0)

This code should work correctly, but unfortunately it seems like the getProjectRoles() function does not work correctly and it does not return anything.






Status
Tech review

Style guide




Short description

Checks whether users are a member of a specific group.

Output

Available since
Label