saurabh
I'm new here

I want to know the script from which i can get all project list from first spirit server

Jump to solution

Hi,

I want to know the script from which i can get all project list from first spirit server

0 Kudos
1 Solution

Accepted Solutions
pavone
I'm new here

Hello,

this BeanShell-Script could help you:

import de.espirit.firstspirit.access.Connection;

import de.espirit.firstspirit.access.project.Project;

Connection connection = context.getConnection();

Project[] projects = connection.getProjects();

Please note that connection.getProjects() only returns those projects that the current user has access to!

Best regards,

Tim

View solution in original post

0 Kudos
1 Reply
pavone
I'm new here

Hello,

this BeanShell-Script could help you:

import de.espirit.firstspirit.access.Connection;

import de.espirit.firstspirit.access.project.Project;

Connection connection = context.getConnection();

Project[] projects = connection.getProjects();

Please note that connection.getProjects() only returns those projects that the current user has access to!

Best regards,

Tim

0 Kudos