You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

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

If no default user has been defined for the project role,  "" 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

This is how a project property could look like.

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(text projectRoleName, text 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

This is how a project property could look like.

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: