Availability
This routine is available since katl-commons 1.0 .
Syntax:
usersInRole(project, role)
Description:
Returns the users that corespond to a certain role on the specified project.Parameters:
Parameter name | Type | Required | Description |
---|---|---|---|
Project key | String | Yes | The key of the selected project |
Role name | String | Yes | The name of the role that is verified |
Return type:
string []
Returns a list with the usernames of the users who have the given role on the specified project.
Example:
Example 1:
//The following users have the role developer in the project PRJ: dev1, dev2, dev3. string role; string[] userbyrole; role = "developer"; userbyrole = usersInRole(project, role); print ("The following users have the role " + role + " in the project" + project + ":"); print(userbyrole);
Result:The following users have the role developer in the project PRJ: dev1, dev2, dev3 (Check the next row beginning with <StringPrintRoutine> for the values.)
See Also:
-
-
addIssuesToSprint (Power Scripts for Jira Cloud)
-
userHasAccessToComment (Power Scripts for Jira Cloud)
-
usersInGroups (Power Scripts for Jira Cloud)
-
-
-
-
-
-
-
-
userInGroup (Simple Issue Language™)
-
-
-
-
-
-
-
-
-
isUserInRole (Simple Issue Language™)
-
isAnyUserAuthenticated (Simple Issue Language™)
-
-
-
userHasAccessToComment (Simple Issue Language™)
-
-
-
-
-
admRemoveUserFromProjectRole (Simple Issue Language™)
-
-
-
admAddUserToProjectRole (Simple Issue Language™)
-
-
-
-
-
-
-
-
userHasSoftwareAccess (Simple Issue Language™)
-
userHasServiceDeskAccess (Simple Issue Language™)
-
userHasCoreAccess (Simple Issue Language™)