projectsForPM
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 katl-commons 1.0.
This routine is available for Jira server and cloud deployment options.
Syntax
projectsForPM(user)
Description
Returns all the projects the selected user has the role of project manager (project lead) in.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
user name | String | Yes | User name of the user that is verified. |
Return type
string []
Returns a list of project keys the project lead is a specified user for.
Example
Example 1
//user "Admin" has the role of project manager in the following projects: PRJ3, PRJ5, PRJ6. string projects = projectsForPM("Admin"); print("You have the role of project manager on the following projects: "); print(projects);
Results: The following string is returned: You have the role of project manager on the following projects: PRJ3, PRJ5, PRJ6. Check the values on the next row beginning with <StringPrintRoutine>.
Example 2
projectsForPM(currentUser());
Results: Returns an array containing the keys of all the projects where the user has the role of project manager.
Notes
If there are no results to the invoking of the function the return value will be an empty array.
See also