Skip to main content

getPortfoliosByProject

codebolt.agentPortfolio.getPortfoliosByProject(projectId: string): Promise<GetPortfoliosByProjectResponse>

Gets all portfolios associated with a specific project.

Parameters

  • projectId (string): The project ID.

Returns

  • Promise<[GetPortfoliosByProjectResponse](/docs/reference/type-reference/codeboltjs/interfaces/GetPortfoliosByProjectResponse)>: A promise that resolves to the list of portfolios.

Examples

const portfolios = await codebolt.agentPortfolio.getPortfoliosByProject('project-456');
console.log(`Project has ${portfolios.data?.portfolios.length} agents`);

Notes

  • Returns all agents who worked on the project
  • Useful for project retrospective and team evaluation