Skip to content

Commit 9277991

Browse files
Merge pull request #49 from mozilla/jira-insight-up
Reducing data displayed from visible projects insight
2 parents f6fbd45 + 9077f38 commit 9277991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jbi/services.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Services and functions that can be used to create custom actions"""
22
import logging
3+
from typing import Dict, List
34

45
import bugzilla as rh_bugzilla # type: ignore
56
from atlassian import Jira # type: ignore
@@ -59,4 +60,5 @@ def jbi_service_health_map():
5960
def jira_visible_projects():
6061
"""Returns list of projects that are currently accessible"""
6162
jira = get_jira()
62-
return jira.projects(included_archived=None)
63+
visible_projects: List[Dict] = jira.projects(included_archived=None)
64+
return [project["key"] for project in visible_projects]

0 commit comments

Comments
 (0)