Rudraaaa76 commited on
Commit
6b4df33
·
1 Parent(s): fea3cfe

chalja bsdk

Browse files
Files changed (1) hide show
  1. api/webhook_routes.py +2 -2
api/webhook_routes.py CHANGED
@@ -83,14 +83,14 @@ async def receive_jira_webhook(
83
  # 1. Fetch All Issues in Project (Limit 50 to avoid timeout for now, can increase)
84
  # We need a method to get issues by project key
85
  try:
86
- project_issues = jira_service.get_issues_by_project(project.key, max_results=50)
87
 
88
  full_data["projects_data"].append({
89
  "project_info": project.model_dump(mode='json'),
90
  "issues": [issue.model_dump(mode='json') for issue in project_issues]
91
  })
92
  except Exception as e:
93
- logger.error(f"Failed to fetch issues for project {project.key}: {str(e)}")
94
  # Add project without issues in worst case
95
  full_data["projects_data"].append({
96
  "project_info": project.model_dump(mode='json'),
 
83
  # 1. Fetch All Issues in Project (Limit 50 to avoid timeout for now, can increase)
84
  # We need a method to get issues by project key
85
  try:
86
+ project_issues = jira_service.get_issues_by_project(project.project_key, max_results=50)
87
 
88
  full_data["projects_data"].append({
89
  "project_info": project.model_dump(mode='json'),
90
  "issues": [issue.model_dump(mode='json') for issue in project_issues]
91
  })
92
  except Exception as e:
93
+ logger.error(f"Failed to fetch issues for project {project.project_key}: {str(e)}")
94
  # Add project without issues in worst case
95
  full_data["projects_data"].append({
96
  "project_info": project.model_dump(mode='json'),