getProjectList

Returns a list of project IDs and names, sorted in the same order as the web-based user interface. The return value is a list of strings, where each pair of elements is a project ID and a project name, for example [ "p1", "Project One", "p2", "Project Two", "zzz", "Project zzz", ... ] The list of projects returned is determined by which projects are "viewable" to the user logged into the jxAPI. This is regulated through group membership.

The following three methods are Project Dependency methods. Projects may have any number of code "dependencies." If a particular Project has one or more dependencies of a particular code type (tasks, pay types, bill types, expense codes, etc) then when a user enters time against that project, that code field will be restricted to only those values listed as dependencies. So for example, you can specify that when a user enters time against project ID '1234', only the Task codes "Sales" and "Management" will be available.

All of these methods take a code_type string parameter. This is a string which names which type of code you wish to use. This is the list of code type strings known to the Project Dependency methods: (those in parenthesis are equivalent synonyms.)

Arguments

Name Type Description
skey string

Return

The getProjectList method returns a list of alternating project IDs and names (an array of string).