groupsOf()

groupsOf()

Description:

Perform searches based on groups that the given user belongs to.
If any user is provided, it will return all the groups that the current user belongs to.

 

 

Syntax

groupsOf()
groupsOf(user, ...)

Available since

v1.0.0-RELEASE

Supported fields

custom fields of type Group

Supported operators

IN , NOT IN

Unsupported operators

= , != , ~ , !~ , > , >= , < , <=

IS , IS NOT , WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED

Examples:

• Find issues whose 'QA Team' group picker custom field value is a group that the current user belongs to:

"QA Team" IN groupsOf()

• Find issues whose 'Dev Team' group picker custom field value is a group that 'John Smith' belongs to:

"Dev Team" IN groupsOf("jsmith")

Real World Use Cases:

· JRASERVER-21392 - JQL: add the ability to query for the groups an user is member of (by Leticia Rafaela Rheinheimer)
· JQL to find all issues where the user's group is in a group customfield? (by Scott Harman at ATLASSIAN Community)
· JSDSERVER-5003 - JQL groupsOf(user), an inverse of membersOf(group) (by Richard Woodward)

 

 

JQL Function Reference