• JMap.Project.getById

    Returns the project for the given project id.

    Parameters

    • projectId: JId

      The JMap project id

    Returns JProject

    Throws

    error if the project doesn't exists or if projectId is not a valid JMap Id.

    Example

    // Get Project id 2
    const project = JMap.Project.getById(2)
    console.log("Project '" + project.name + "' is loaded")