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.

Syntax
usersInRole(projectRole) #Output: Text list
Examples
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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

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

This function returns a TEXT LIST


Variant where you can additionally define a specific project key.

Syntax
usersInRole(projectRole, projectKey) #Output: Text
Examples
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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

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

TEXT

Text containing a valid project key.
Output

This function returns a TEXT LIST


Use cases and examples