Status
Tech review

Style guide




Short description

Returns members of a given project role.

Output

Available since




This function returns a list of all user names of active users that are members of a given project role in the current issue's project.

Multiple project roles can be specified in a comma-separated list of project role names, returning members of all specified project roles.


usersInRole(projectRole) #Output: Text list



Parser expressionDescription


toString(usersInRole("Developers"))


This example returns a comma-separated list of all members of the Developers project role in the current issue's project, e.g.:

"admin.istrator, b.smith, a.grant"

To achieve this the following functions are used



Parameters used in this function

ParameterInput (data type)Description
projectRole

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.



This function returns a




Variant where you can additionally define a specific project key.


usersInRole(projectRole, projectKey) #Output: Text



Parser expressionDescription


usersInRole("Developers", "CRM")


This example returns a comma-separated list of all members of the Developers project role in the CRM project, e.g.:

"admin.istrator, b.smith, a.grant"

To achieve this the following functions are used



Parameters used in this function

ParameterInput (data type)Description
projectRole

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.
projectKey

Text containing a valid project key.



This function returns a