This function returns the default project role user for the current project. This user must be defined in a JWT project property

If no default user has been defined for the project role, another user added to the project role will be returned. In the case that no user is added to the project role, an empty string will be returned.

Syntax
defaultUserForRole(projectRole) #Output: Text
Examples
Parser expressionDescription
defaultUserForRole("Developers")

This example returns the default project role user for the Developers project role in the current project, e.g.:

b.smith

More info...

This is how a project property could look like.

If the user has not been added to the project role in advance, another user with the same project role or an empty string will be returned.


Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

Text containing a valid project role name.
Output

This function returns a TEXT

Variant where you can additionally define a specific project key.

Syntax
defaultUserForRole(projectRoleName, projectKey) #Output: Text
Examples
Parser expressionDescription
defaultUserForRole("Developers", "CRM")

This example returns the default project role user for the Developers project role in the CRM project, e.g.:

b.smith

More info...

This is how a project property could look like.

If the user has not been added to the project role in advance, another user in the project role or an empty string will be returned.


Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

Text containing a valid project role name.
projectKey

TEXT

Text containing a valid project key.
Output

This function returns a TEXT

This function only makes sense in combination with JWT project properties.

If properly configured, this function will typically be used in combination with the following functions: 


Use cases and examples