This function checks if a user or group of users are members of a project role in the current project.

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.


isInRole(users, projectRole) #Output: Boolean



Parser expressionDescription


isInRole(%{issue.reporter}, "Testers")


This example returns true if the Reporter is in project role Testers.




Parameters used in this function

ParameterInput (data type)Description
users

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

Text containing a valid project role name.



This function returns a




Variant where you can additionally define a specific project key.


isInRole(users, projectRole, projectKey) #Output: Boolean



Parser expressionDescription


isInRole(%{system.currentUser}, "Developers", "CRM")


This example returns true if the current user is in project role Developers in the project with key "CRM".




Parameters used in this function

ParameterInput (data type)Description
users

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

Text containing a valid project role name.
projectKey

Text containing a valid project key.



This function returns a



Use cases and examples




Status
Tech review

Style guide




Short description

Checks whether users are a member of a specific project role.

Output

Available since
Label