Warning |
---|
The availability of the users personal data may be impacted by the recent changes by Atlassian in order to meet GDPR compliance. See the following for more information: |
Info |
---|
|
This routine is available starting with katl-commons 1.0.This routine is available for Jira server and cloud deployment options. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | userGroups(user) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the groups the selected user belongs to. |
Returns the groups the selected user belongs to.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
user | |
...
...
Yes | Username or userkey of the selected user. |
|
...
The search is done by the user key only. |
|
Return Type
string String []
The returned array represents the names of the groups this user belongs to.
...
Examples
Example 1
Code Block |
---|
userGroups("username");
|
Result: The list of groups that the user with account username belongs to.
...
Code Block |
---|
userGroups(currentUser());
|
Result: The list of groups that the current user belongs to.
...
Note |
---|
The look-up is first made after the userkey, then after the username. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jira_groupuser_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_group_routineroutines |
---|
|