diff --git a/integrations/jira/jira/client.py b/integrations/jira/jira/client.py index 4961ed63b..69ea42294 100644 --- a/integrations/jira/jira/client.py +++ b/integrations/jira/jira/client.py @@ -251,15 +251,19 @@ async def get_paginated_team_members( ): yield members - async def fetch_team_members(self, team_id: str, org_id: str) -> list[dict[str, Any]]: + async def fetch_team_members( + self, team_id: str, org_id: str + ) -> list[dict[str, Any]]: members = [] async for batch in self.get_paginated_team_members(team_id, org_id): members.extend(batch) return members - async def enrich_teams_with_members(self, teams: list[dict[str, Any]], org_id: str) -> list[dict[str, Any]]: + async def enrich_teams_with_members( + self, teams: list[dict[str, Any]], org_id: str + ) -> list[dict[str, Any]]: logger.debug(f"Fetching members for {len(teams)} teams") - + team_tasks = [self.fetch_team_members(team["teamId"], org_id) for team in teams] results = await asyncio.gather(*team_tasks)