groupsUserBelongsTo()

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.


Bash
groupsUserBelongsTo(users) #Output: Text list


Examples

Parser expression

Description

Bash
groupsUserBelongsTo("b.smith")

This example returns all groups b.smith belongs to, e.g.:

jira-developers, jira-administrators

Bash
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

Bash
groupsUserBelongsTo("Users")

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

jira-users, jira-developers

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

users

text

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

Output

This function returns a text list


📚 Use cases and examples