Project role
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
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the default project role user for the Developers project role in the current project, e.g.: b.smith |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid project role name. |
Output
This function returns a text
Project key
Variant where you can additionally define a specific project key.
defaultUserForRole(projectRoleName, projectKey) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the default project role user for the Developers project role in the CRM project, e.g.: b.smith |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid project role name. |
|
|
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
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|