This function returns a text list of all project roles a given user belongs to in the current project.

Multiple users can be specified as a comma-separated list of user names, group names and project role names, returning a list of project roles, any of the returned users is a member of.


rolesUserPlays(users) #Output: Text list



Parser expressionDescription


rolesUserPlays("b.smith")


This example returns all project roles in the current project for b.smith:
Administrators, Testers, Staff-internal



Parameters used in this function

ParameterInput (data type)Description
users

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



This function returns a




Variant where you can additionally define a specific project key.


rolesUserPlays(users, projectKey) #Output: Text list



Parser expressionDescription


rolesUserPlays("b.smith","CRM")


This example returns all project roles in the CRM project for b.smith:
Testers, Staff-internal



Parameters used in this function

ParameterInput (data type)Description
users

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

Text containing a valid project key.



This function returns a



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

issue.reporter.getProjectRoles(new Project("SGC"))






Short description

Returns all project roles for given users.

Output

Available since

Label






Status
Tech review

Style guide