projectsWithPermissionForUser

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™ 3.1.2/SIL Engine™ 3.0.14.


Syntax

projectsWithPermissionForUser(user, permissionKey)


Description

Retrieves the project keys where the given user has the given permission.

Parameters

Parameter name

Type

Required

Description

user

String

Yes

Username.

permissionKeyStringYesKey of the permission.

Return type

string[]

The return value is a string array containing all the project keys where the given user has the given permission.

Example

return projectsWithPermissionForUser("admin", "ADMINISTER_PROJECTS"));

Result: DEMO|ITSD|TST

See also