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.


defaultUserForRole(projectRole) #Output: Text



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.

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.






Parameters used in this function

ParameterInput (data type)Description
projectRole

Text containing a valid project role name.



This function returns a



Variant where you can additionally define a specific project key.


defaultUserForRole(projectRoleName, projectKey) #Output: Text



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.

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.






Parameters used in this function

ParameterInput (data type)Description
projectRole

Text containing a valid project role name.
projectKey

Text containing a valid project key.



This function returns a


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



Parser function cloud
Map(error)
NotesIt's only possible to access to the ID, name and description of the Project Roles.






Status
Tech review

Style guide




Short description

Returns the user name of the default project role user. 

Output

Available since

Label