File tree 1 file changed +2
-1
lines changed
src/sentry/integrations/jira/endpoints
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
from sentry .api .api_publish_status import ApiPublishStatus
11
11
from sentry .api .base import control_silo_endpoint
12
12
from sentry .integrations .api .bases .integration import IntegrationEndpoint
13
+ from sentry .integrations .jira .integration import JiraProjectMapping
13
14
from sentry .integrations .models .integration import Integration
14
15
from sentry .organizations .services .organization import RpcOrganization
15
16
from sentry .shared_integrations .exceptions import ApiError , ApiUnauthorized , IntegrationError
@@ -94,7 +95,7 @@ def get(
94
95
return Response ({"detail" : "Unable to fetch projects from Jira" }, status = 400 )
95
96
96
97
projects = [
97
- { " label" : f"{ p ["key" ]} - { p ["name" ]} " , " value" : p ["id" ]}
98
+ JiraProjectMapping ( label = f"{ p ["key" ]} - { p ["name" ]} " , value = p ["id" ])
98
99
for p in response .get ("values" , [])
99
100
]
100
101
You can’t perform that action at this time.
0 commit comments