Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleAvailability

This routine is available starting with SIL Engineā„¢ 1.0.

This routine is available for Jira server and cloud deployment options.

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

usersInRole(project, role)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns the users that corespond to a certain role on the specified project.

Returns the users that corespond to a certain role on the specified project.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

Project key

String

Yes

Key of the selected project.

Role name

String

Yes

Name of the role that is verified.

Return

...

Type

string String []

Returns a list with the usernames of the users who have the given role on the specified project.

Example

...

Examples

Code Block
//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 following row beginning with <StringPrintRoutine> for the values.

...

Filter by label (Content by label)
showLabelsfalse
max15025
showSpacefalse
cqllabel = "jira_user_routine" and space = currentSpace ( )
labelsjiraarray_user_routineroutines