Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titlesyntax
linenumberstrue
groupsUserBelongsTo(users) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
groupsUserBelongsTo("b.smith")


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


Code Block
languagebash
linenumberstrue
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


Code Block
languagebash
linenumberstrue
groupsUserBelongsTo("Users")


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



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
users

Status
subtletrue
titletext

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_groupsuserbelongsto" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns all groups for given users.

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourBlue
title2.1.32

Label