Lists object
Not available for: Advanced project scripts.
You can use the Lists object to limit field input to a specific list of values.
The Lists object can be used only with fields that are defined as the Lookup List type or the String type in Project Customization of project entities.
For example, to set the list in the Planned Closing Version field, depending on the Project field value, you can use the following code.
if (Bug_Fields.Field("BG_PROJECT").Value === "Project 1") {
Bug_Fields.Field("BG_PLANNED_CLOSING_VER").List = Lists("All Projects");
}