Users
This function returns a text list of all project roles a given user belongs to in the current project.
Multiple users can be specified as a comma-separated list of user names, group names and project role names, returning a list of project roles, any of the returned users is a member of.
rolesUserPlays(users) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns all project roles in the current project for b.smith: Administrators, Testers, Staff-internal |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid user, group or project role name. |
Output
This function returns a text list
Project key
Variant where you can additionally define a specific project key.
rolesUserPlays(users, projectKey) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns all project roles in the CRM project for b.smith: Testers, Staff-internal |
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 key. |
Output
This function returns a text list
📚 Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|