This function returns a text list of group names users are belonging to. You can specify user names, group names or role names.

Multiple items can be specified as a comma-separated list.


groupsUserBelongsTo(users) #Output: Text list



Parser expressionDescription


groupsUserBelongsTo("b.smith")


This example returns all groups b.smith belongs to, e.g.:
jira-developers, jira-administrators


groupsUserBelongsTo("jira-administrators")


This example returns all groups of all users that are member of the jira-administrators group, e.g.:
jira-users, jira-administrators


groupsUserBelongsTo("Users")


This example returns all groups of all users that are member of the Users project role, e.g.:
jira-users, jira-developers



Parameters used in this function

ParameterInput (data type)Description
users

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



This function returns a



Use cases and examples




Parser function cloud
Map(question)
Notes

It's possible to access to a user's groups, but it's not possible to do it by only using the username, because to access to a user the acccount ID should be used. Also, using a field code it can be done.

Workaround

issue.reporter.groups

or

let userSearch = new User("5e60bebccf54800ce3a0221c");
userSearch.groups







Status
Tech review

Style guide




Short description

Returns all groups for given users.

Output

Available since

Label