admGetFiltersForProject

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

admGetFiltersForProject(user, projectKey)

Description

Retrieves all filters for a given project that the user is allowed to see.

Parameters

Parameter name

Type

Required

Description

user

string

Yes

The user that needs to have permissions on the specified project

projectKeystringYesKey of the selected project.

Return type

JFilter []

Returns a list of filters for a given project that the user is allowed to see.

Example

JFilter [] filters = admGetFiltersForProject("admin", "TEST");
for(JFilter f in filters) {
    runnerLog("returned filter: " + f);
}