groupsInRole

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center?Ā Click hereĀ !

Availability

This routine is available starting withĀ SIL Engine 4.8.0.4.

Syntax

groupsInRole(project, role)


Description

Returns the groups that correspondĀ to a certain role on the specified project.

Parameters


Parameter name

Type

Required

Description

project

string

Yes

Key of the selected project.

role

string

Yes

Name of the role that is verified.


Return type


string []


Returns a list with the groups who are associated with the given role on the specified project.

Example

string projectKey = "TEST";
string role = "Administrators";
string [] groups = groupsInRole(projectKey, role);
for (string g in groups) {
    runnerLog("Returned group: "+ g);
}