Skip to end of banner
Go to start of banner

projectsForPM

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

Returns all the projects the selected user has the role of project manager (project lead) in.

Parameters

Return Type

String []

Returns a list of project keys the project lead is a specified user for.

Examples

//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.

projectsForPM(currentUser());

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.

See also

  • No labels