Status
Tech review

Style guide




Short description

Returns only 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.

Output




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 only 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.


isInRole(text user_name, text role_name) #Output: Boolean



Parser expressionDescription


isInRole(%{00006}, "Testers")


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

%{00006} is field code for Reporter.



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a




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Ā  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.


isInRole(text user_name, text role_name, text project_key) #Output: Boolean



Parser expressionDescription


isInRole(%{00020}, "Developers", "CRM")


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

%{00020} is field code for Current user.



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a