Skip to content

Commit 720019d

Browse files
reapply the JiraProjectMapping typeddict
1 parent 08e5d1a commit 720019d

File tree

1 file changed

+2
-1
lines changed
  • src/sentry/integrations/jira/endpoints

1 file changed

+2
-1
lines changed

src/sentry/integrations/jira/endpoints/search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from sentry.api.api_publish_status import ApiPublishStatus
1111
from sentry.api.base import control_silo_endpoint
1212
from sentry.integrations.api.bases.integration import IntegrationEndpoint
13+
from sentry.integrations.jira.integration import JiraProjectMapping
1314
from sentry.integrations.models.integration import Integration
1415
from sentry.organizations.services.organization import RpcOrganization
1516
from sentry.shared_integrations.exceptions import ApiError, ApiUnauthorized, IntegrationError
@@ -94,7 +95,7 @@ def get(
9495
return Response({"detail": "Unable to fetch projects from Jira"}, status=400)
9596

9697
projects = [
97-
{"label": f"{p["key"]} - {p["name"]}", "value": p["id"]}
98+
JiraProjectMapping(label=f"{p["key"]} - {p["name"]}", value=p["id"])
9899
for p in response.get("values", [])
99100
]
100101

0 commit comments

Comments
 (0)