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

Compare with Current View Page History

« Previous Version 4 Next »

The function checks if a user or group of users plays a role in the current project. Argument user_name can also be a comma-separated list of user names, group names or role names. In that case, the function will return TRUEonly if all users in the list, groups of the list, and in the roles of the list, are in the project role in the second argument, for the current project.

Syntax
isInRole(text user_name, text role_name) #Output: Boolean
Examples
Parser expressionDescription
isInRole(%{00006}, "Testers")

The function returns TRUE if Reporter is in project role Testers.

%{00006} is field code for Reporter.

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a BOOLEAN


The function checks if a user or group of users plays a role in a certain project. Argument user_name can also be a comma-separated list of user names, group names or role names. In that case, the function will return TRUE only if all users in the list, groups of the list, and in the roles of the list, are in role in the second argument, for the project in the third argument.

Syntax
isInRole(text user_name, text role_name, text project_key) #Output: Boolean
Examples
Parser expressionDescription
isInRole(%{00020}, "Developers", "CRM")

The function returns TRUE if the Current user is in project role and Developers in project with key "CRM".

%{00020} is field code for Current user.

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a BOOLEAN