Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titleSyntax
linenumberstrue
isInGroup(users, group) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
isInGroup(%{issue.assignee}, "jira-developers")


The function returns true if the assignee is in group 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.
group

Status
subtletrue
titletext

Text containing a valid Jira group.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleboolean



Use cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

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




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

Checks whether users are a member of a specific group.

Output

Status
subtletrue
titleboolean

Available since
Label

Status
colourRed
titlestaff pick