This routine is available starting with katl-commons 1.0.
This routine is available for Jira server and cloud deployment options.
Returns all the projects the selected user has the role of project manager (project lead) in.
User name of the user that is verified.
Returns a list of project keys the project lead is a specified user for.
//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: ");
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>.
Results: Returns an array containing the keys of all the projects where the user has the role of project manager.
If there are no results to the invoking of the function the return value will be an empty array.