Project role
This function checks if a user or group of users are members of a project role in the current project.
Multiple user names can also be provided in 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 the given project role for the current project.
isInRole(users, projectRole) #Output: Boolean
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns true if the Reporter is in project role Testers. |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid user, group or project role name. |
|
|
text |
Text containing a valid project role name. |
Output
This function returns a BOOLEAN
Project key
Variant where you can additionally define a specific project key.
isInRole(users, projectRole, projectKey) #Output: Boolean
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns true if the current user is in project role Developers in the project with key "CRM". |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid user, group or project role name. |
|
|
text |
Text containing a valid project role name. |
|
|
text |
Text containing a valid project key. |
Output
This function returns a BOOLEAN