File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 7
7
from fastapi .responses import JSONResponse
8
8
9
9
from src .app import environment
10
- from src .jbi .services import jbi_service_health_map
10
+ from src .jbi .services import jbi_service_health_map , jira_visible_projects
11
11
12
12
api_router = APIRouter (tags = ["Monitor" ])
13
13
@@ -62,3 +62,9 @@ def head_lbheartbeat(request: Request):
62
62
def version ():
63
63
"""Return version.json, as required by Dockerflow."""
64
64
return environment .get_version ()
65
+
66
+
67
+ @api_router .get ("/jira_projects/" )
68
+ def get_jira_projects ():
69
+ """API for viewing projects that are currently accessible by API"""
70
+ return jira_visible_projects ()
Original file line number Diff line number Diff line change @@ -54,3 +54,9 @@ def jbi_service_health_map():
54
54
"bugzilla" : bugzilla_check_health (),
55
55
"jira" : jira_check_health (),
56
56
}
57
+
58
+
59
+ def jira_visible_projects ():
60
+ """Returns list of projects that are currently accessible"""
61
+ jira = get_jira ()
62
+ return jira .projects (included_archived = None )
You can’t perform that action at this time.
0 commit comments