Skip to main content

Get projects

Gets a list of existing projects

Function GetProjects(Val URL, Val Token, Val Page = 1) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Page--pageNumberList page number
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";

Result = OPI_ReportPortal.GetProjects(URL, Token);
oint rportal GetProjects \
--url "tests.openintegrations.dev" \
--token "***"
Result
{
"content": [
{
"id": 1,
"projectName": "superadmin_personal",
"usersQuantity": 1,
"launchesQuantity": 84,
"launchesPerUser": null,
"uniqueTickets": null,
"launchesPerWeek": null,
"lastRun": "2026-05-26T13:20:04Z",
"creationDate": "2026-03-18T09:44:43.417341Z",
"entryType": "PERSONAL",
"organization": null
},
{
"id": 4,
"projectName": "test",
"usersQuantity": 2,
"launchesQuantity": 6,
"launchesPerUser": null,
"uniqueTickets": null,
"launchesPerWeek": null,
"lastRun": "2026-01-01T10:00:00Z",
"creationDate": "2026-03-21T12:12:51.737289Z",
"entryType": "INTERNAL",
"organization": null
},
{
"id": 8,
"projectName": "default_personal",
"usersQuantity": 1,
"launchesQuantity": 0,
"launchesPerUser": null,
"uniqueTickets": null,
"launchesPerWeek": null,
"lastRun": null,
"creationDate": "2026-03-21T12:14:42.494131Z",
"entryType": "PERSONAL",
"organization": null
},
{
"id": 154,
"projectName": "testproject",
"usersQuantity": 1,
"launchesQuantity": 0,
"launchesPerUser": null,
"uniqueTickets": null,
"launchesPerWeek": null,
"lastRun": null,
"creationDate": "2026-05-26T14:38:18.710741Z",
"entryType": "INTERNAL",
"organization": null
}
],
"page": {
"number": 1,
"size": 30,
"totalElements": 4,
"totalPages": 1
}
}