• JMap.Project.getByName

    Returns the project for the given project name.

    Parameters

    • projectName: string

      The JMap project name

    Returns JProject

    Throws

    error if the project doesn't exists or if projectName is not a string.

    Example

    // Get project "My Project"
    const project = JMap.Project.getByName("My Project")
    console.log("Project id '" + project.id + "' is loaded")