usersInRole()

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.


Bash
usersInRole(projectRole) #Output: Text list


Examples

Parser expression

Description

Bash
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

Parameter

Input (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.


Bash
usersInRole(projectRole, projectKey) #Output: Text


Examples

Parser expression

Description

Bash
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

Parameter

Input (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